mirror of
https://github.com/BradNut/dotfiles
synced 2025-09-08 17:40:19 +00:00
Separate aliases and adding ZSH Brew completions.
This commit is contained in:
parent
66aa3da7ed
commit
b41d12d22d
1 changed files with 10 additions and 3 deletions
13
.zshrc
13
.zshrc
|
|
@ -1,5 +1,6 @@
|
||||||
# Path to oh-my-zsh installation.
|
# Path to oh-my-zsh installation.
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
export ZSH=$HOME/.oh-my-zsh
|
||||||
|
export PATH=/usr/local/bin:$PATH
|
||||||
|
|
||||||
ZSH_THEME="robbyrussell"
|
ZSH_THEME="robbyrussell"
|
||||||
|
|
||||||
|
|
@ -17,6 +18,10 @@ plugins=(
|
||||||
zsh-syntax-highlighting
|
zsh-syntax-highlighting
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if type brew &>/dev/null; then
|
||||||
|
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
|
||||||
|
fi
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# Useful aliases
|
# Useful aliases
|
||||||
|
|
@ -25,9 +30,11 @@ alias ohmyzsh="vim ~/.oh-my-zsh"
|
||||||
alias vimconfig="vim ~/.vimrc"
|
alias vimconfig="vim ~/.vimrc"
|
||||||
alias update="source ~/.zshrc"
|
alias update="source ~/.zshrc"
|
||||||
|
|
||||||
|
# Git
|
||||||
|
alias status="git status"
|
||||||
|
|
||||||
|
# Docker
|
||||||
alias dcp='docker-compose -f /opt/docker-compose.yml '
|
alias dcp='docker-compose -f /opt/docker-compose.yml '
|
||||||
alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel'
|
alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel'
|
||||||
alias dclogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" '
|
alias dclogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" '
|
||||||
alias dtail='docker logs -tf --tail="50" "$@"'
|
alias dtail='docker logs -tf --tail="50" "$@"'
|
||||||
|
|
||||||
alias status='git status'
|
|
||||||
Loading…
Reference in a new issue