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
|
# Comfortable aliases
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias cp='cp -v'
|
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 g='git'
|
||||||
alias gc='g commit'
|
alias gc='g commit'
|
||||||
alias gd='g diff'
|
alias gd='g diff'
|
||||||
alias glog='g log --graph --oneline'
|
alias glog='g log --graph --oneline'
|
||||||
alias gst='g status --short --branch'
|
alias gst='g status --short --branch'
|
||||||
alias l='ls -F -h'
|
# update all repositories within the current directory
|
||||||
alias la='ls -F -h -a'
|
alias update_repositories='find . -type d -name .git -execdir git pull \;'
|
||||||
alias mv='mv -v'
|
|
||||||
alias view='vim -R'
|
|
||||||
|
|
||||||
# Suppresses line numbers in less
|
# Suppresses line numbers in less
|
||||||
alias less='less --line-numbers'
|
alias less='less --line-numbers'
|
||||||
|
Loading…
Reference in New Issue
Block a user