commit a2654a80884adbe549adeef48e4260e1b46f22a3 parent 2950ef622224df134e53a26e6f27bf5dfe4d4bab Author: Alex Balgavy <alex@balgavy.eu> Date: Wed, 17 Feb 2021 18:13:02 +0100 shell: make ce() exclude scripts Diffstat:
M | shell/functions | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/functions b/shell/functions @@ -109,7 +109,7 @@ if [ -d ~/.config/fzf ]; then # config edit ce() { local files - IFS=$'\n' files=($(command find ~/.dotfiles -type f ! -ipath "*/.git/*" ! -ipath "*/bin/*" ! -ipath "*/oh-my-zsh/*" ! -name ".DS_Store" | fzf -m --inline-info --prompt="edit> " --height=40 --reverse)) + IFS=$'\n' files=($(command find ~/.dotfiles -type f ! -ipath "*/scripts/*" ! -ipath "*/.git/*" ! -ipath "*/bin/*" ! -ipath "*/oh-my-zsh/*" ! -name ".DS_Store" | fzf -m --inline-info --prompt="edit> " --height=40 --reverse)) [[ -n "$files" ]] && ${EDITOR:-vim} "${files[@]}" }