From 48994f533ad17dc108b6ec58edb8f7d086975799 Mon Sep 17 00:00:00 2001 From: Hendrik Jaeger Date: Fri, 12 Oct 2018 15:09:17 +0200 Subject: Fix tmux title setting in vim --- .tzvt_config | 32 ++++++++++++++++---------------- .zshrc | 1 + 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.tzvt_config b/.tzvt_config index de7cbbb..5ac7291 100644 --- a/.tzvt_config +++ b/.tzvt_config @@ -7,16 +7,16 @@ # Path to config file, to create one, just make a copy of this file # at your $tzvt_config location (e.g. ~/.tzvt_config -[ -n "$tzvt_config" ] || tzvt_config="$HOME/.tzvt_config" +#[ -n "$tzvt_config" ] || tzvt_config="$HOME/.tzvt_config" # Update tmux title on zsh shell change -[ -n "$tzvt_zsh_update_tmux" ] || tzvt_zsh_update_tmux=false +#[ -n "$tzvt_zsh_update_tmux" ] || tzvt_zsh_update_tmux=true # Update the window name also -[ -n "$tzvt_set_tmux_window_status" ] || tzvt_set_tmux_window_status=false +#[ -n "$tzvt_set_tmux_window_status" ] || tzvt_set_tmux_window_status=true # Use more CPU intensive vim title change -[ -n "$tzvt_vim_force_tmux_title_change" ] || tzvt_vim_force_tmux_title_change=false +#[ -n "$tzvt_vim_force_tmux_title_change" ] || tzvt_vim_force_tmux_title_change=true ############# # Formats # @@ -25,35 +25,35 @@ ## Hostname, JSON dictionary, e.g.: ## tzvt_host_dict="{$HOST: 'mycomp'}" Used to replace hostname ## wherever host name is used -[ -n "$tzvt_host_dict" ] || tzvt_host_dict="" +#[ -n "$tzvt_host_dict" ] || tzvt_host_dict="" # Space taken by the path in the title bar -[ -n "$tzvt_pth_width" ] || tzvt_pth_width=60 +#[ -n "$tzvt_pth_width" ] || tzvt_pth_width=60 # Space taken by the path in the window tab, if tzvt_set_tmux_window_status is true -[ -n "$tzvt_win_pth_width" ] || tzvt_win_pth_width=25 +#[ -n "$tzvt_win_pth_width" ] || tzvt_win_pth_width=25 ## Tmux -[ -n "$tzvt_tmux_title_start" ] || tzvt_tmux_title_start='t:' -[ -n "$tzvt_tmux_title_root" ] || tzvt_tmux_title_root='rt:' +#[ -n "$tzvt_tmux_title_start" ] || tzvt_tmux_title_start='t:' +#[ -n "$tzvt_tmux_title_root" ] || tzvt_tmux_title_root='rt:' # tzvt_tmux_title_format_ssh is used on SSH, and is parsed to use # the shortest hostname possible. For the long hostname, use #H or set $HOSTNAME -[ -n "$tzvt_tmux_title_format" ] || tzvt_tmux_title_format='#S:#T' -[ -n "$tzvt_tmux_title_format_ssh" ] || tzvt_tmux_title_format_ssh='#h:#S:#T' +#[ -n "$tzvt_tmux_title_format" ] || tzvt_tmux_title_format='#S:#T' +#[ -n "$tzvt_tmux_title_format_ssh" ] || tzvt_tmux_title_format_ssh='#h:#S:#T' # For window names, if tzvt_set_tmux_window_status is true, in tmux this is # altered such that #W is replaced with #T (terminal title). -[ -n "$tzvt_tmux_win_current_fmt" ] || tzvt_tmux_win_current_fmt='#F#I:#W' -[ -n "$tzvt_tmux_win_other_fmt" ] || tzvt_tmux_win_other_fmt='#F#I:#W' +#[ -n "$tzvt_tmux_win_current_fmt" ] || tzvt_tmux_win_current_fmt='#F#I:#W' +#[ -n "$tzvt_tmux_win_other_fmt" ] || tzvt_tmux_win_other_fmt='#F#I:#W' ## ZSH -[ -n "$tzvt_zsh_title_fmt" ] || tzvt_zsh_title_fmt='${cmd}:${pth}' +#[ -n "$tzvt_zsh_title_fmt" ] || tzvt_zsh_title_fmt='${cmd}:${pth}' ## Vim -[ -n "$tzvt_vim_title_prefix" ] || tzvt_vim_title_prefix="v:" +#[ -n "$tzvt_vim_title_prefix" ] || tzvt_vim_title_prefix="v:" # Include PATH in vim title: # true=path from current location # long=entire path, shortened by ZSH named dirs if run from ZSH # zsh=try to use ZSH named dirs if ZSH installed, fallback to no path # false=do not include a PATH, the default (it's cleaner) -[ -n "$tzvt_vim_include_path" ] || tzvt_vim_include_path=false +#[ -n "$tzvt_vim_include_path" ] || tzvt_vim_include_path=false diff --git a/.zshrc b/.zshrc index 55d67b1..2e73a21 100644 --- a/.zshrc +++ b/.zshrc @@ -75,6 +75,7 @@ setopt NO_BG_NICE #setopt LONG_LIST_JOBS export YSU_MODE=ALL +export tzvt_set_tmux_window_status=true #bindkey -v -- cgit v1.2.3