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