feat: add chezmoi cd alias and separate interactive apply command

This commit is contained in:
2025-12-27 23:25:34 -06:00
parent f859d5d44b
commit ffcb41380c
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -20,8 +20,10 @@ abbr -a chlg 'lazygit --path ~/.local/share/chezmoi'
abbr -a es 'exec fish' abbr -a es 'exec fish'
# Chezmoi # Chezmoi
abbr -a cha 'chezmoi apply --interactive' abbr -a cha 'chezmoi apply'
abbr -a chai 'chezmoi apply --interactive'
abbr -a ch 'chezmoi' abbr -a ch 'chezmoi'
alias cdc='chezmoi cd'
# Remote Management # Remote Management
abbr -a romanlog "ssh roman 'tail -F /var/log/syslog' --lines 100" abbr -a romanlog "ssh roman 'tail -F /var/log/syslog' --lines 100"
+3 -1
View File
@@ -16,8 +16,10 @@ alias chlg='lazygit --path ~/.local/share/chezmoi'
alias es='exec $SHELL' alias es='exec $SHELL'
# Chezmoi # Chezmoi
alias cha='chezmoi apply --interactive' alias cha='chezmoi apply'
alias chai='chezmoi apply --interactive'
alias ch='chezmoi' alias ch='chezmoi'
alias cdc='chezmoi cd'
chshow() { chshow() {
target=$(find {{ .chezmoi.sourceDir | quote }} -name "*.tmpl" -type f | fzf) target=$(find {{ .chezmoi.sourceDir | quote }} -name "*.tmpl" -type f | fzf)
cat $target | chezmoi execute-template cat $target | chezmoi execute-template