} else {
alias ll='ls -lAFh'
}
-alias p=$PAGER
-alias e=$EDITOR
+alias p=\$PAGER
+alias e=\$EDITOR
alias se=sudoedit
# be paranoid
alias cp='cp -ip'
### specialized aliases
## go up directories
function up {
- cd $(printf '../%.0s' {1..${1:-1}})
+ \cd $(printf '../%.0s' {1..${1:-1}})
}
alias u=up
## zoxide
-[[ -v commands[zoxide] ]] && eval "$(zoxide init zsh)"
+if [[ -v commands[zoxide] ]] {
+ eval "$(zoxide init zsh)"
+ alias cd=z
+}
+## git
+alias ga='git add'
+alias gdh='git diff HEAD'
### hooks
autoload -Uz add-zsh-hook
prompt arrows
### load site-specific
-if [[ -f ${ZDOTDIR:-~}/.zshrc.local ]] { source ${ZDOTDIR:-~}/.zshrc.local }
+load-site-dotfile zshrc