Browse Source

Set _HOSTCOLOR_ env val and use it from tmux.conf

pull/2/head
10sr 9 years ago
parent
commit
efee339525
2 changed files with 31 additions and 4 deletions
  1. +24
    -2
      profile
  2. +7
    -2
      tmux.conf

+ 24
- 2
profile View File

@@ -116,5 +116,27 @@ fi
###########################################
# Host colors

export _COLOR_FOREGROUND=
export _COLOR_BACKGROUND=
export _HOSTCOLOR_1=
export _HOSTCOLOR_2=
case "`hostname`" in
arch-aspireone)
_HOSTCOLOR_1=yellow
_HOSTCOLOR_2=black
;;
arch-mba)
_HOSTCOLOR_1=cyan
_HOSTCOLOR_2=black
;;
newkiwi)
_HOSTCOLOR_1=magenta
_HOSTCOLOR_2=white
;;
debian-vb-win7-opti)
_HOSTCOLOR_1=red
_HOSTCOLOR_2=white
;;
*)
_HOSTCOLOR_1=green
_HOSTCOLOR_2=black
;;
esac

+ 7
- 2
tmux.conf View File

@@ -1,7 +1,12 @@
# tmux.conf

if "test -f $HOME/.tmux.conf.local" "source-file $HOME/.tmux.conf.local" \
"display-message \"$HOME/.tmux.conf.local not found\""
run-shell 'tmux set -g status-right "${USER}@`hostname` | #(tmux -V) "'

run-shell 'tmux set -g status-bg "$_HOSTCOLOR_1" >/dev/null'
run-shell 'tmux set -g status-fg "$_HOSTCOLOR_2" >/dev/null'
run-shell 'tmux set -g mode-bg "$_HOSTCOLOR_1" >/dev/null'
run-shell 'tmux set -g mode-bg "$_HOSTCOLOR_2" >/dev/null'
run-shell 'tmux set -g pane-active-border-fg "$_HOSTCOLOR_1" >/dev/null'

unbind C-b
set -g prefix C-z


Loading…
Cancel
Save