projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3a24035
)
tmux - add hostname
author
Peng Li
<seudut@gmail.com>
Sat, 23 Jun 2018 11:53:11 +0000
(19:53 +0800)
committer
Peng Li
<seudut@gmail.com>
Sat, 23 Jun 2018 11:53:11 +0000
(19:53 +0800)
tmux.conf
patch
|
blob
|
history
diff --git
a/tmux.conf
b/tmux.conf
index
4bd229e
..
625b3c5
100755
(executable)
--- a/
tmux.conf
+++ b/
tmux.conf
@@
-17,7
+17,8
@@
set -g status-fg white
set-window-option -g window-status-current-bg red
#set-option -g status-right "#[fg=green]#T #[fg=yellow,bold]#(date '+%Y-%m-%d %I:%M%P %a') "
#set-option -g status-right "#[fg=green]#(whoami) #[fg=yellow,bold]#(date '+%Y-%m-%d') #[fg=red,bold]#(date '+%I:%M') #[fg=yellow,bold]#(date '+%p %a') "
set-window-option -g window-status-current-bg red
#set-option -g status-right "#[fg=green]#T #[fg=yellow,bold]#(date '+%Y-%m-%d %I:%M%P %a') "
#set-option -g status-right "#[fg=green]#(whoami) #[fg=yellow,bold]#(date '+%Y-%m-%d') #[fg=red,bold]#(date '+%I:%M') #[fg=yellow,bold]#(date '+%p %a') "
-set-option -g status-right "#[fg=red]#(echo $SSH_CONNECTION | awk '{print $3}') #[fg=yellow]#(date '+%Y-%m-%d') #[fg=red]#(date '+%I:%M') #[fg=yellow]#(date '+%p %a') "
+set-option -g status-right-length 60
+set-option -g status-right "#[fg=red]#(hostname) #[fg=red]#(echo $SSH_CONNECTION | awk '{print $3}') #[fg=yellow]#(date '+%Y-%m-%d') #[fg=red]#(date '+%I:%M') #[fg=yellow]#(date '+%p %a') "
if-shell 'test "$(uname)" = "Darwin"' 'set -g status-bg black'
if-shell 'test "$(uname)" = "Linux"' 'set -g status-bg blue'
if-shell 'test "$(uname)" = "Darwin"' 'set -g status-bg black'
if-shell 'test "$(uname)" = "Linux"' 'set -g status-bg blue'