fix(tmux): find warning when using t function

Fixes #51
This commit is contained in:
Oliver Davies 2023-04-24 19:28:34 +01:00
parent f58ef51f0f
commit 575e0f694b

2
bin/t
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 -type d -mindepth 1 -maxdepth 2 ! -name .git | sort | fzf --reverse)
selected=$(find ~/Code -mindepth 1 -maxdepth 2 -type d ! -name .git | sort | fzf --reverse)
fi
if [[ -z $selected ]]; then