Commit b11108c9 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Remove the tmux-virtualenv title plugin

As there is no great way of reverting the title change on leaving a
virtualenv, it is being removed.
parent d1cd13b5
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
if typeset -f workon_cwd &>/dev/null; then
	function workon_title {
		local prefix="${ENV_TITLE_PREFIX-[VirtualEnv] }"
		if [[ "$ENV_NAME" != "" ]] && [[ "$VIRTUAL_ENV" != "" ]]; then
			if [[ "$TMUX" != "" ]]; then
				printf '\033k%s%s\033' "$prefix" "$ENV_NAME"
			else
				printf '\033]0;%s%s\007' "$prefix" "$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