fix (zshrc): the command is not necessarily invoked at the top-level of a specific repository so the correct work-tree must be specified

This commit is contained in:
eeemsi 2023-02-13 15:35:53 +01:00
parent fe962313b5
commit 555b2a2524
1 changed files with 1 additions and 1 deletions

2
zshrc
View File

@ -68,7 +68,7 @@ alias gd='g diff'
alias glog='g log --graph --oneline'
alias gst='g status --short --branch'
# update all repositories within the current directory
alias update_repositories='find . -name ".git" -type d | xargs -P8 -I{} git --git-dir={} pull'
alias update_repositories='find . -name ".git" -type d | xargs -P4 -I{} git --git-dir={} --work-tree={} pull'
# Suppresses line numbers in less
alias less='less --line-numbers'