Edited fzf scripts to allow symlinks

This commit is contained in:
i.ortega 2020-05-08 17:39:10 +02:00
parent be1c77e52d
commit 2b88bd7b38
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env sh
file="$(find "$SCRIPTS" "$TSCRIPTS" -regex ".*\.\(ba\)?sh\$" \
file="$(find -L "$SCRIPTS" "$TSCRIPTS" -regex ".*\.\(ba\)?sh\$" \
-type f | sed "s|^$HOME/||" | fzf -i)"
[ -z "$file" ] || $EDITOR "$HOME/$file"

View File

@ -1,8 +1,7 @@
#!/usr/bin/env sh
files=$(find "$SCRIPTS/" "$TSCRIPTS/" -regex ".*\.\(ba\)?sh\$" -type f | sed "s|^$HOME/||")
files="${files}\n$(find "$TSCRIPTS/" -regex ".*\.\(ba\)?sh\$" -type l | sed "s|^$HOME/||")"
files=$(find -L "$SCRIPTS/" "$TSCRIPTS/" -regex ".*\.\(ba\)?sh\$" -type f | sed "s|^$HOME/||")
# printf "%b\n" "${files}"