From afa0757a8a602afb592cbda83d2cfba577920e38 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sun, 1 Jun 2025 15:29:12 +0800 Subject: [PATCH] =?UTF-8?q?feat=20tmux:=20statusline=E5=85=88=E5=81=9A?= =?UTF-8?q?=E5=88=9D=E6=AD=A5=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot_tmux.conf | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/dot_tmux.conf b/dot_tmux.conf index d54e55c..9bced3e 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf @@ -13,10 +13,27 @@ set -g @plugin 'tmux-plugins/tmux-sensible' # set -g @plugin 'git@github.com:user/plugin' # set -g @plugin 'git@bitbucket.com:user/plugin' -set -g @plugin 'erikw/tmux-powerline' +# == Plugin Configure ========================================================= +# tmux show-options -g | grep status-left +set -g status-interval 1 +set -g status-keys vi +# set -g status-justify centre +set -g status-left-length 100 +set -g status-right-length 100 +set -g status-bg default +set -g status-fg white +set -g status-style "bg=black,fg=white" +set -g status-left "[#{session_name}] " +set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" %H:%M %d-%b-%y" +# set -g status-left '#{tmux_mode_indicator}#[fg=colour240]#(whoami)' +# set -g status-left '#{tmux_mode_indicator}#[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=colour240,bg=default]' +# set -g status-left "#[bg=colour240]aaaaa #[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=black,bg=colour240]" +# set -g status-left "#[bg=colour240]aaaaa #[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=black,bg=colour240]" +# set -g status-right "#(date '+%Y-%m-%d %H:%M') #[fg=colour240]#[fg=white,bg=colour240] #(uptime | cut -d ',' -f 1)" + +# == TPM Footer =------======================================================== # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' -# == Plugin Configure =========================================================