new (zshrc): add alias to update all git repositories within the current directory
This commit is contained in:
parent
a91ffe96ef
commit
59c12ff606
12
zshrc
12
zshrc
@ -56,15 +56,19 @@ setopt PROMPT_SUBST
|
||||
# Comfortable aliases
|
||||
alias ..='cd ..'
|
||||
alias cp='cp -v'
|
||||
alias l='ls -F -h'
|
||||
alias la='ls -F -h -a'
|
||||
alias mv='mv -v'
|
||||
alias view='vim -R'
|
||||
|
||||
# Comfortable git aliases
|
||||
alias g='git'
|
||||
alias gc='g commit'
|
||||
alias gd='g diff'
|
||||
alias glog='g log --graph --oneline'
|
||||
alias gst='g status --short --branch'
|
||||
alias l='ls -F -h'
|
||||
alias la='ls -F -h -a'
|
||||
alias mv='mv -v'
|
||||
alias view='vim -R'
|
||||
# update all repositories within the current directory
|
||||
alias update_repositories='find . -type d -name .git -execdir git pull \;'
|
||||
|
||||
# Suppresses line numbers in less
|
||||
alias less='less --line-numbers'
|
||||
|
Loading…
Reference in New Issue
Block a user