alias spa="sudo $ps"
unset ps
## git
+alias g=git
alias gd='git diff'
alias gdh='git diff HEAD'
alias ga='git add'
alias gca='git commit --amend'
alias gp='git push'
alias gu='git pull'
+alias gl='git log'
+alias gt='git tree' # from gitconfig
## cd/zoxide
function up {
\cd $(printf '../%.0s' {1..${1:-1}})
}
alias cd..=up
## dotfiles
-alias dfu='d=${$(echo -E - ~/.zshenv):P:h:h};GIT_DIR=$d/.git GIT_WORK_TREE=$d git pull'
+alias dfu='d=${$(echo -E - ~/.zshenv):P:h:h};GIT_DIR=$d/.git GIT_WORK_TREE=$d {
+ git pull &&
+ git submodules init &&
+ git submodules sync &&
+ git submodules update
+}'
### hooks
autoload -Uz add-zsh-hook