From 4197e32e72fd297511e965f4d7b709ef5ecf45c4 Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Tue, 7 Jun 2022 00:42:50 -0400 Subject: [PATCH] Additional chezmoi aliases czcd / cdcz czs - chezmoi status --- _home/dot_sz.shrc.d/97_chezmoi_aliases | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_home/dot_sz.shrc.d/97_chezmoi_aliases b/_home/dot_sz.shrc.d/97_chezmoi_aliases index 655b239..8bb8423 100644 --- a/_home/dot_sz.shrc.d/97_chezmoi_aliases +++ b/_home/dot_sz.shrc.d/97_chezmoi_aliases @@ -1,5 +1,11 @@ if [[ -n "$(type -fP chezmoi)" ]]; then + alias cdcz="cd $(chezmoi source-path)" + alias czcd="cdcz " + alias cz="chezmoi " + + alias czs="chezmoi status " + 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 "