From 6fb77a634d14614d7293aa9e72096583b5f49f58 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Tue, 11 Mar 2025 11:13:39 -0300 Subject: [PATCH] More aliases --- dot_zshrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dot_zshrc b/dot_zshrc index cd45805..4da11fe 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -29,6 +29,14 @@ function ls { fi } +# Dotfiles management +function .add { + chezmoi add $1 + chezmoi git diff + if $(read -q "?Commit changes? [y/N]"); then + chezmoi git commit -- -am $2 + fi +} function .re-add { chezmoi re-add chezmoi git diff @@ -36,6 +44,10 @@ function .re-add { chezmoi git commit -- -am $1 fi } +alias .push="chezmoi git push" +alias .pull="chezmoi git pull" +alias .status="chezmoi git status" +alias .update="chezmoi update" # Helpful tool: https://zsh-prompt-generator.site/