mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-02 04:08:30 -05:00
13 lines
303 B
Bash
Executable File
13 lines
303 B
Bash
Executable File
#!/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
|