Browse Source

fix tmux.conf

pull/1/head
10sr 12 years ago
parent
commit
89dd84e5bc
2 changed files with 16 additions and 12 deletions
  1. +9
    -8
      bashrc
  2. +7
    -4
      tmux.conf

+ 9
- 8
bashrc View File

@@ -184,17 +184,18 @@ then
fi fi


tmux_main(){ tmux_main(){
if tmux has -t main
if tmux has -t main
then
if tmux lsc -t main
then then
if tmux lsc -t main
tmux new
else
tmux attach -t main
fi
tmux new
else else
tmux new -s main
tmux attach -t main
fi fi
}
else
tmux new -s main
fi
}


__my_moc_state(){ __my_moc_state(){
type mocp >/dev/null 2>&1 || return type mocp >/dev/null 2>&1 || return


+ 7
- 4
tmux.conf View File

@@ -7,8 +7,8 @@ bind-key C command-prompt "new-window '%%'"
setw -g mode-keys vi setw -g mode-keys vi


set -g default-command /bin/bash set -g default-command /bin/bash
#set -g default-terminal screen-16color
set -g default-terminal screen-256color set -g default-terminal screen-256color
#set -g default-terminal screen-16color


#set -g status-left "" #set -g status-left ""
#set -g status-right "#H | %a, %d %b %Y %T %z #(tmux -V)" #set -g status-right "#H | %a, %d %b %Y %T %z #(tmux -V)"
@@ -18,6 +18,9 @@ set message-fg yellow


set -g set-titles on set -g set-titles on


set status-fg white
set status-bg green
if "test `hostname` = newkiwi" "set status-bg blue"
set -g status-bg green
if "test `hostname` = newkiwi" "set -g status-bg blue"
set -g status-fg white

#if "! tmux has -t main" "new-session -d -s main"
#attach -t main

Loading…
Cancel
Save