Skip to content
Permalink
e94b96b908
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 13 lines (11 sloc) 388 Bytes
function fp --description "Search your path"
set -l loc (echo $PATH | tr ' ' '\n' | eval "fzf $FZF_DEFAULT_OPTS --header='[find:path]'")
if test (count $loc) = 1
set -l cmd (rg --files -L $loc | rev | cut -d'/' -f1 | rev | tr ' ' '\n' | eval "fzf $FZF_DEFAULT_OPTS --header='[find:exe] => $loc'")
if test (count $cmd) = 1
echo $cmd
else
fp
end
end
end