diff options
Diffstat (limited to '.config/bash/functions')
-rw-r--r-- | .config/bash/functions | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/.config/bash/functions b/.config/bash/functions index 8a29018..14309b9 100644 --- a/.config/bash/functions +++ b/.config/bash/functions @@ -3,8 +3,7 @@ pf() { # project finder root_dir="$HOME/docs/src" - selected_dir=$(find "$root_dir" -maxdepth 1 -type d | sed "s:$root_dir::;s:/::;/^$/ d" | fzf) - cd "$root_dir"/"$selected_dir" || return + selected_dir=$(find "$root_dir" -maxdepth 1 -type d | sed "s:$root_dir::;s:/::;/^$/ d" | BEMENU_BACKEND=curses bemenu -p "Choose directory") && cd "$root_dir"/"$selected_dir" || return } xb() { |