mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-04 21:28:21 -05:00
13 lines
303 B
Plaintext
13 lines
303 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
fzpath() {
|
||
|
loc=$(echo "$PATH" | sed -e $'s/:/\\\n/g' | eval "fzf ${FZF_DEFAULT_OPTS} --header='[find:path]'")
|
||
|
|
||
|
if [[ -d $loc ]]; then
|
||
|
rg --files "$loc" | rev | cut -d"/" -f1 | rev | eval "fzf ${FZF_DEFAULT_OPTS} --header='[find:exe] => ${loc}' >/dev/null"
|
||
|
fzpath
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
fzpath
|