fix -maxdepth argument in fzf() function

This commit is contained in:
Sheldon Lee 2024-12-20 09:57:06 +08:00
parent 0cde7b2f25
commit bdbcade580

View File

@ -32,7 +32,7 @@ cfg()
# session there with the name of the directory. # session there with the name of the directory.
ts() ts()
{ {
dir=$(find --maxdepth 2 -L $HOME/Documents -type d 2> /dev/null | fzf) dir=$(find -L $HOME/Documents -maxdepth 2 -type d 2> /dev/null | fzf)
[ -z "$dir" ] && return [ -z "$dir" ] && return
tmux new -s $(basename "$dir") -c "$dir" tmux new -s $(basename "$dir") -c "$dir"
} }