diff --git a/.config/git/config b/.config/git/config index 11888b6..2848d48 100644 --- a/.config/git/config +++ b/.config/git/config @@ -15,7 +15,7 @@ flog = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/glog\"" root = rev-parse --show-toplevel signoff = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-signoff\"" - spull = "!__git_spull() { git pull \"$@\" && git submodule sync --recursive && git submodule update --init --recursive; }; __git_spull" + spull = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-spull\"" track = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-track\"" [blame] date = short diff --git a/.config/zsh/autoload/git/git-spull b/.config/zsh/autoload/git/git-spull new file mode 100755 index 0000000..e26f38d --- /dev/null +++ b/.config/zsh/autoload/git/git-spull @@ -0,0 +1,7 @@ +#!/usr/bin/env zsh + +emulate -L zsh -o err_return + +git pull "$@" +git submodule sync --recursive +git submodule update --init --recursive