# be paranoid
alias cp='cp -ip'
alias mv='mv -i'
+# zsh zmv with noglob wildcards
alias zm='noglob zmv -WiM'
alias zc='noglob zmv -WiC'
alias zl='noglob zmv -WiL'
alias rm='rm -i'
}
[[ -v commands[trash-put] ]] && alias t=trash-put
-## py venv
-alias va='source bin/activate'
-alias vd=deactivate
-## ps
+# ps
source ~/.local/bin/.check-busybox
if [[ -v commands[pstree] ]] && ! check-busybox pstree; then
# use pstree, but NOT busybox pstree because it kinda sucks
alias pa=$ps
alias spa="sudo $ps"
unset ps
+## py venv
+alias va='source bin/activate'
+alias vd=deactivate
## git
alias g=git
alias gd='git diff'
}
alias cd..=up
## dotfiles
-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
+alias dfu=' function {
+ local d=${$(echo -E - ~/.zshenv):P:h:h}
+ local -x GIT_DIR=$d/.git GIT_WORK_TREE=$d
+ git pull &&
+ git submodule init &&
+ git submodule sync &&
+ git submodule update
}'
+## nocorrect
+# zsh doesnt really handle sudo very well, so ignore it
+alias sudo='nocorrect sudo'
+## docker compose
+alias dcp='sudo docker compose pull'
+alias dcu='sudo docker compose up -d'
+alias dcr='sudo docker compose restart'
+alias dcl='sudo docker compose logs -f'
### hooks
autoload -Uz add-zsh-hook