Updated config
This commit is contained in:
@ -4,7 +4,6 @@ alias gc "git clone"
|
||||
alias gd "git diff --ignore-space-at-eol"
|
||||
alias gl "git log --oneline"
|
||||
alias gp "git pull"
|
||||
alias gpr "find . -mindepth 1 -maxdepth 1 -type d -print -exec git -C {} pull \;"
|
||||
alias gs "git status"
|
||||
|
||||
# Go
|
||||
|
9
.config/fish/functions/gpr.fish
Normal file
9
.config/fish/functions/gpr.fish
Normal file
@ -0,0 +1,9 @@
|
||||
function gpr
|
||||
for dir in (find . -type d -name ".git")
|
||||
set repo (dirname $dir)
|
||||
set_color green
|
||||
echo "Updating $repo"
|
||||
set_color normal
|
||||
git -C $repo pull
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user