Add chshow with fzf finder for fast execute-template

This commit is contained in:
2024-11-07 19:46:27 -06:00
parent 165639c9cc
commit ee96ffc370

View File

@@ -12,6 +12,10 @@ alias chlg='lazygit --path ~/.local/share/chezmoi'
# Chezmoi
alias cha='chezmoi apply --interactive'
alias ch='chezmoi'
chshow() {
target=$(find {{ .chezmoi.sourceDir | quote }} -name "*.tmpl" -type f | fzf)
cat $target | chezmoi execute-template
}
# Other aliases
alias gpt='chatgpt'