Edited fzf scripts to allow symlinks
This commit is contained in:
parent
be1c77e52d
commit
2b88bd7b38
|
@ -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"
|
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue