Browse Source

iwholename was a non-standard option

master
Juni Kim 2 years ago
parent
commit
47eb674bfa
  1. 24
      scripts/tmuxs

24
scripts/tmuxs

@ -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

Loading…
Cancel
Save