Move session list to the right so its less distracting
This commit is contained in:
parent
99a86df53f
commit
655e1ea802
2 changed files with 5 additions and 7 deletions
|
@ -17,13 +17,11 @@ TMUX_SESSION_LIST="$(tmux list-sessions | awk \
|
|||
-v assuf="${ANY_SESSION_SUFFIX}" \
|
||||
-v cspre="${CUR_SESSION_PREFIX}" \
|
||||
-v cssuf="${CUR_SESSION_SUFFIX}" \
|
||||
'{
|
||||
s=substr($1,0,length($1)-1);
|
||||
'{s=substr($1,0,length($1)-1);
|
||||
if(s==cursesh){
|
||||
s=cspre" "s" "cssuf
|
||||
}else{
|
||||
s=aspre" "s" "assuf
|
||||
}printf s
|
||||
}')"
|
||||
}printf s}')"
|
||||
|
||||
echo "${TMUX_SESSION_LIST}"
|
||||
echo "${TMUX_SESSION_LIST//\s*$/}" | sed -e 's/\s*$//'
|
||||
|
|
|
@ -51,8 +51,8 @@ set -g status-right-length 20
|
|||
|
||||
set -g status-interval 1
|
||||
# set status-interval 1
|
||||
set -g status-left '#(#{DOTFILES_PATH}/scripts/bin/tmux-session-list #S)#[fg=colour18]#[bg=default]|#[fg=colour7] #W'
|
||||
set -g status-left-length 200
|
||||
set -g status-right '#[fg=colour4]#W #[fg=colour18]#[bg=default]|#[fg=colour7] #(#{DOTFILES_PATH}/scripts/bin/tmux-session-list #S)'
|
||||
set -g status-right-length 200
|
||||
|
||||
setw -g window-status-current-fg colour7
|
||||
setw -g window-status-current-bg colour2
|
||||
|
|
Reference in a new issue