diff options
author | Vitor Gonçalves <vitorg@tilde.team> | 2023-12-05 01:47:53 -0300 |
---|---|---|
committer | Vitor Gonçalves <vitorg@tilde.team> | 2023-12-05 01:48:16 -0300 |
commit | 58a4050265beca1608d76162b45edd6c7d34e360 (patch) | |
tree | cd5403041e88751ed86ac32b7f989f12b568ec0b /.config | |
parent | a0c6f7b7bf681ad4276a9bce05be33055a76c48d (diff) | |
download | dots-58a4050265beca1608d76162b45edd6c7d34e360.tar.gz |
bash: changed fzf to bemenu in pf()
also did a bugfix where if you don't select no nothing you would cd into $root_dir
Diffstat (limited to '.config')
-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() { |