Commit 7e522d9f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

added a plugin which sets tmux|xterm title to VENV name

parent 741a3b62
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
if typeset -f workon_cwd &>/dev/null; then
	function workon_title {
		if [[ "$ENV_NAME" != "" ]] && [[ "$VIRTUAL_ENV" != "" ]]; then
			if [[ "$TMUX" != "" ]]; then
				printf '\033k%s\033' "$ENV_NAME"
			else
				printf '\033]0;%s\007' "$ENV_NAME"
			fi
		fi
	}
 
	# Append workon_title to the chpwd_functions array, so it will be called on 
	# cd.  http://zsh.sourceforge.net/Doc/Release/Functions.html
	if ! (( $chpwd_functions[(I)workon_title] )); then
		chpwd_functions+=(workon_title)
	fi
fi
+2 −1
Original line number Diff line number Diff line
source ~/.shell/funcs

plugins=(git django pip python virtualenv virtualenvwrapper)
plugins+=(git django pip python)
plugins+=(virtualenv virtualenvwrapper tmux-virtualenvwrapper)

ZSH_CUSTOM=~/.shell/zsh_custom
ZSH_THEME="kodo"