fix: sort directory list before piping to fzf
This commit is contained in:
parent
282fe69810
commit
e699c03b90
|
@ -11,7 +11,7 @@ if [[ $# -eq 1 ]]; then
|
|||
else
|
||||
# Get the session name from fuzzy-finding list of directories and generating a
|
||||
# tmux-safe version.
|
||||
selected=$(find ~/ ~/Code ~/Code/clients ~/Code/os ~/Code/Personal ~/Documents/Talks/ -mindepth 1 -maxdepth 1 -type d -not -name ".*" | fzf)
|
||||
selected=$(find ~/ ~/Code ~/Code/clients ~/Code/os ~/Code/Personal ~/Documents/Talks/ -mindepth 1 -maxdepth 1 -type d -not -name ".*" | sort | fzf)
|
||||
fi
|
||||
|
||||
selected_name=$(basename "$selected" | tr . -)
|
||||
|
|
Loading…
Reference in a new issue