diff --git a/.screenrc b/.screenrc index 75fc5ff..df09f12 100644 --- a/.screenrc +++ b/.screenrc @@ -1,4 +1,4 @@ -# GNU Screen - main configuration file +# GNU Screen - main configuration file # Allow bold colors - necessary for some reason attrcolor b ".I" @@ -17,14 +17,14 @@ term xterm-256color # Cache 30000 lines for scroll back defscrollback 30000 -hardstatus alwayslastline +hardstatus alwayslastline # Very nice tabbed colored hardstatus line hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}' # change command character from ctrl-a to ctrl-b (emacs users may want this) #escape ^Bb -# Hide hardstatus: ctrl-a f +# Hide hardstatus: ctrl-a f bind f eval "hardstatus ignore" # Show hardstatus: ctrl-a F bind F eval "hardstatus alwayslastline" diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..338b02e --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,53 @@ +# Make it use C-a, similar to screen.. +unbind C-b +set -g prefix C-a + +set -g default-terminal "screen-256color" +set -g history-limit 50000 + + +# THEME +set -g status-bg colour235 +set -g status-fg yellow +set-option -g status-attr dim +set-window-option -g window-status-current-fg brightred #orange +set-window-option -g window-status-current-bg colour236 +set-window-option -g window-status-current-attr bright + +set -g status-interval 60 +set-option -g status-utf8 on +set -sg escape-time 1000 +set-option -g base-index 1 +setw -g aggressive-resize on +set -g status-justify centre +#set -g status-left '#[fg=green]#(whoami)@#H#[default]' +set -g status-left-length 70 +set -g status-left "#[fg=yellow]#(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') #(ifconfig en1 | grep 'inet ' | awk '{print \"en1 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') " +# show session name, window & pane number, date and time on right side of status bar +set -g status-right-length 60 +set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::" +# set pane colors - hilight the active pane +set-option -g pane-border-fg colour235 #base02 +set-option -g pane-active-border-fg colour240 #base01 + + +# use PREFIX | to split window horizontally and PREFIX - to split vertically +bind | split-window -h +bind - split-window -v +# Make the current window the first window +bind T swap-window -t 1 +# and use C-h and C-l to cycle thru panes +bind -r C-h select-window -t :- +bind -r C-l select-window -t :+ +# explicitly disable mouse control +setw -g mode-mouse off +set -g mouse-select-pane off +set -g mouse-resize-pane off +set -g mouse-select-window off + + +# +bind-key -n C-S-Up resize-pane -U 10 +bind-key -n C-S-Down resize-pane -D 10 +bind-key -n C-S-Left resize-pane -L 10 +bind-key -n C-S-Right resize-pane -R 10