Added cz aliases

cz-refresh - refresh the chezmoi source
cz-commit  - shortcut to a commit all
This commit is contained in:
Gal Szkolnik 2022-05-26 09:06:21 -04:00
parent 786431f769
commit de2e7e8ae5
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,11 @@
alias sudo="sudo " alias sudo="/usr/bin/sudo "
alias nvim="nvim -p " alias nvim="/usr/bin/nvim -p "
alias vim="nvim " alias vim="nvim "
alias vi="nvim " alias vi="nvim "
alias ed="nvim "
alias edshrc="ed ~/.sz.shrc.d ; exec $SHELL"
alias cz="chezmoi "
alias cz-refresh="chezmoi status | cut -d\ -f2 | grep '^\.sz\.shrc\.d' | xargs chezmoi forget --force; chezmoi add ~/.sz.shrc.d --recursive; chezmoi status; chezmoi git status"
alias cz-commit="chezmoi git -- commit -a "