2015-04-18 03:28:03 +00:00
|
|
|
#!/bin/bash
|
2015-06-06 20:50:58 +00:00
|
|
|
__fzfcmd() {
|
|
|
|
[ ${FZF_TMUX:-1} -eq 1 ] && echo "fzf-tmux -d${FZF_TMUX_HEIGHT:-40%}" || echo "fzf"
|
|
|
|
}
|
|
|
|
|
2015-04-18 03:21:23 +00:00
|
|
|
command find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
|
|
|
|
-o -type f -print \
|
|
|
|
-o -type d -print \
|
2015-06-06 20:50:58 +00:00
|
|
|
-o -type l -print 2> /dev/null | sed 1d | cut -b3- | $(__fzfcmd) -m | while read item; do
|
2015-04-18 03:21:23 +00:00
|
|
|
printf '%q ' "$item"
|
|
|
|
done
|
|
|
|
echo
|