From 1d11adfe94710ae2ff944442a2d1c48d755315b1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 25 Jan 2024 17:50:48 +0000 Subject: [PATCH] Only show top-level directories within ~/Code/tmp --- bin/t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/t b/bin/t index f4dd27f..2d91653 100755 --- a/bin/t +++ b/bin/t @@ -10,7 +10,9 @@ if [[ $# -eq 1 ]]; then else # Get the session name from fuzzy-finding list of directories and generating a # tmux-safe version. - items=$(find ~/Code -mindepth 3 -maxdepth 3 -type d ! -name .git) + items+=$(find "${HOME}/Code" -mindepth 3 -maxdepth 3 -type d ! -name .git -not -path "${HOME}/Code/tmp/*") + items+=" " + items+=$(find "${HOME}/Code/tmp" -mindepth 1 -maxdepth 1 -type d) selected=$(echo "${items}" | sort | fzf --reverse) fi