dots-add better and better

This commit is contained in:
Daylin Morgan 2024-06-11 11:57:45 -05:00
parent e33566ffad
commit 44d128df4a
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -4,7 +4,7 @@ alias dots='cd ${DOTFILES_DIR:-~/.dotfiles}'
alias dots-drop='chezmoi forget --interactive $(chezmoi managed -p absolute | fzf -m)'
# alias dots-add='chezmoi re-add --interactive'
function dots-add {
chezmoi add $(chezmoi status | grep '^MM' | awk '{print $2}' | fzf -m)
chezmoi add $(chezmoi status | grep '^MM' | awk -v home="$HOME/" '{print home$2}' | fzf -m)
}