|
|
@ -30,21 +30,21 @@ done |
|
|
|
if test -z "$sessiondir"; then |
|
|
|
if ! test -z "$depth" && test "$depth" -eq 0; then |
|
|
|
sessiondir="$(find $findargs\ |
|
|
|
\! -iwholename '*.git*'\ |
|
|
|
\! -iwholename '*.vscode*'\ |
|
|
|
\! -iwholename '*.idea*'\ |
|
|
|
\! -iwholename '*node_modules*'\ |
|
|
|
\! -iwholename '*__pycache__*'\ |
|
|
|
\! -iwholename '*venv*'\ |
|
|
|
\! -name '*.git*'\ |
|
|
|
\! -name '*.vscode*'\ |
|
|
|
\! -name '*.idea*'\ |
|
|
|
\! -name '*node_modules*'\ |
|
|
|
\! -name '*__pycache__*'\ |
|
|
|
\! -name '*venv*'\ |
|
|
|
-type d 2>/dev/null | fzf)" |
|
|
|
else |
|
|
|
sessiondir="$(find $findargs -maxdepth ${depth:-2}\ |
|
|
|
\! -iwholename '*.git*'\ |
|
|
|
\! -iwholename '*.vscode*'\ |
|
|
|
\! -iwholename '*.idea*'\ |
|
|
|
\! -iwholename '*node_modules*'\ |
|
|
|
\! -iwholename '*__pycache__*'\ |
|
|
|
\! -iwholename '*venv*'\ |
|
|
|
\! -name '*.git*'\ |
|
|
|
\! -name '*.vscode*'\ |
|
|
|
\! -name '*.idea*'\ |
|
|
|
\! -name '*node_modules*'\ |
|
|
|
\! -name '*__pycache__*'\ |
|
|
|
\! -name '*venv*'\ |
|
|
|
-type d 2>/dev/null | fzf)" |
|
|
|
fi |
|
|
|
fi |
|
|
|