Quickly switch projects in tmux. Projects are ordered by most-recently-used (MRU).
- fzf
- Python 3.10+
- tmux
- bash
Symlink pswitch.py onto your PATH:
ln -s "$PWD/pswitch.py" /usr/local/bin/pswitchPoint pswitch at the directory that contains your projects:
pswitch config set --dir=~/Documents/projectsAdd a binding to ~/.tmux.conf (binds C-b o):
bind o display-popup -E '<path>/pswitch/tmux.sh'
- Change the projects directory:
pswitch config set --dir=~/Documents/work-projects pswitch config set --dir=~/Documents/personal-projects
- Change how deep to scan for projects (default
1):pswitch config set --depth=2