chore: rename tmux-sessioniser

- Rename `tmux-sessioniser` to `t`.
- Search only within the `~/Code` directory instead of using zoxide.
This commit is contained in:
Oliver Davies 2022-12-19 09:39:39 +00:00
parent 6f08c2de82
commit ee44c41652

View file

@ -11,7 +11,7 @@ if [[ $# -eq 1 ]]; then
else
# Get the session name from fuzzy-finding list of directories and generating a
# tmux-safe version.
selected=$(zoxide query -l | sort | fzf --reverse)
selected=$(find ~/Code -type d -mindepth 1 -maxdepth 2 ! -name .git | sort | fzf --reverse)
fi
if [[ -z $selected ]]; then