fix: ignore directories starting with a period

This commit is contained in:
Oliver Davies 2021-09-17 21:25:49 +01:00
parent 73e76b4d97
commit 282fe69810

View file

@ -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 . -)