new (zshrc): add alias to update all git repositories within the current directory

This commit is contained in:
eeemsi 2023-02-11 09:53:03 +01:00
parent a91ffe96ef
commit 59c12ff606
1 changed files with 8 additions and 4 deletions

12
zshrc
View File

@ -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'