Add's support for saving and restoring python active python virtual environments to tmux-resurrect. At the moment it only recognizes virtualenvwrapper environments (as it utilises the hooks provided by that project to get told about activation and deactivation of environments.)
Requirements / dependencies: tmux 1.9
or higher, bash
, recent tmux-resurrect
with Hook support (PR #267).
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'ashb/tmux-resurrect-virtualenvwrapper'
Hit prefix + I
to fetch the plugin and source it. You should now be able to
use the plugin.
Clone the repo:
$ git clone https://github.com/ashb/tmux-resurrect-virtualenvwrapper ~/clone/path
Add this line to the bottom of .tmux.conf
:
run-shell ~/clone/path/resurrect-venvs.tmux