Loading .shell/zsh_custom/plugins/tmux-virtualenvwrapper/tmux-virtualenvwrapper.plugin.zshdeleted 100644 → 0 +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 Loading
.shell/zsh_custom/plugins/tmux-virtualenvwrapper/tmux-virtualenvwrapper.plugin.zshdeleted 100644 → 0 +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