commit e1de91a304aaa498f1b28c26dcfadb3454872e58 parent b7031b2aaabffa739c86494b9df8a473418b1c2f Author: Alex Balgavy <a.balgavy@gmail.com> Date: Wed, 23 Sep 2020 12:19:34 +0200 shell: script edit function includes symlinks Former-commit-id: f3e96988e89d2d41bf2a513d0b3e95356d8d39c7 Diffstat:
M | shell/functions | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/functions b/shell/functions @@ -95,7 +95,7 @@ if [ -f ~/.fzf.zsh ] || [ -f ~/.fzf.bash ]; then # script edit se() { local files - IFS=$'\n' files=($(command find "$(readlink ~/.scripts)" -type f -not -ipath "*/.git/*" | fzf -m --inline-info --prompt="edit> " --height=40 --reverse)) + IFS=$'\n' files=($(command find "$(readlink ~/.scripts)" -type f -or -type l -not -ipath "*/.git/*" | fzf -m --inline-info --prompt="edit> " --height=40 --reverse)) [[ -n "$files" ]] && ${EDITOR:-vim} "${files[@]}" } # script create