From bdbcade58017b2a771e0c2c98ab1c35ae48af85b Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Fri, 20 Dec 2024 09:57:06 +0800 Subject: [PATCH] fix -maxdepth argument in fzf() function --- .config/scripts/functions/fzf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/scripts/functions/fzf b/.config/scripts/functions/fzf index baf0084..830864f 100644 --- a/.config/scripts/functions/fzf +++ b/.config/scripts/functions/fzf @@ -32,7 +32,7 @@ cfg() # session there with the name of the directory. 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 tmux new -s $(basename "$dir") -c "$dir" }