Only show top-level directories within ~/Code/tmp
This commit is contained in:
parent
d0c6fe0002
commit
1d11adfe94
4
bin/t
4
bin/t
|
@ -10,7 +10,9 @@ if [[ $# -eq 1 ]]; then
|
||||||
else
|
else
|
||||||
# Get the session name from fuzzy-finding list of directories and generating a
|
# Get the session name from fuzzy-finding list of directories and generating a
|
||||||
# tmux-safe version.
|
# 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)
|
selected=$(echo "${items}" | sort | fzf --reverse)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue