commit 40e325916e5fbe1ace78bc6d568b9dde717e0dfe
parent ff2839a637e8de131de1afde4f4e385b88cc359a
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date: Thu, 12 Jul 2018 01:16:46 +0200
Disable custom time format
Setting a custom time format with #(date) causes the tmux pane to flicker.
Therefore, the custom setting is disabled.
Diffstat:
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/tmux.conf b/tmux.conf
@@ -43,14 +43,14 @@ set -g status-interval 1 # default 15 secs
setw -g monitor-activity on
set -g visual-activity on
-# show host name and IP address on left side of status bar
-set -g status-left-length 70
+# show host name and current directory on left side of status bar
+set -g status-left-length 100
set -g status-left "#[fg=green]:::: #[fg=white]#(whoami)@#h #[fg=green]:: #[fg=white]#{b:pane_current_path} #[fg=green]::"
-# show current uptime, user number, session name, window & pane number, date and time on right side of status bar
+# show current date and time on right side of status bar
# --> sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' <-- removes all leading and closing whitespaces of a string
set -g status-right-length 100
-set -g status-right "#[fg=green]:: #[fg=white]#(date --utc +%FW%V%a%T) #[fg=green]::::"
+set -g status-right "#[fg=green]:: #[fg=white]#(date --rfc-3339=seconds) #[fg=green]::::"
# set the window info in the middle of the status bar
set -g status-justify centre
@@ -62,7 +62,7 @@ setw -g window-status-current-fg white
# color the status bar
set -g status-bg colour235
set -g status-fg white
-#set-option -g status-attr dim
+set-option -g status-attr dim
#################################################################
########################### windows #############################
@@ -73,9 +73,6 @@ set -g status-fg white
set-window-option -g automatic-rename off
set-option -g allow-rename off
-# start with window 1 (default 0)
-set -g base-index 1
-
##################################################################
####################### panes ####################################
##################################################################
@@ -85,15 +82,11 @@ set-window-option -g window-style 'bg=#1F1F1F'
set-window-option -g window-active-style 'bg=black'
set-window-option -g pane-active-border-style ''
-# start with pane 1 (default 0)
-set -g pane-base-index 1
-
###########################################################
###################### misc ###############################
###########################################################
# for emacs commands in tmux
-
setw -g mode-keys emacs
# mouse mode
@@ -117,8 +110,7 @@ set-option -g history-limit 50000
#set -g status-utf8 on
#set -g utf8 on
-# set default color
-
+# set terminal name
set -g default-terminal "screen-256color"
# shorten command delay