fix: ignore directories starting with a period
This commit is contained in:
parent
73e76b4d97
commit
282fe69810
|
@ -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 | fzf)
|
||||
selected=$(find ~/ ~/Code ~/Code/clients ~/Code/os ~/Code/Personal ~/Documents/Talks/ -mindepth 1 -maxdepth 1 -type d -not -name ".*" | fzf)
|
||||
fi
|
||||
|
||||
selected_name=$(basename "$selected" | tr . -)
|
||||
|
|
Loading…
Reference in a new issue