tmuxen

tmux environment made easy
git clone git://git.unixkoans.com/tmuxen.git
Log | Files | Refs

commit 6e7bb80a5acef1d5a11d5cd91ac5e14549483e08
parent cf837940a55bb0a3143e630eb8913b5928e8a151
Author: Xiaodong Xu <[email protected]>
Date:   Mon Jul 11 22:17:25 +0800

Cleanup config

Diffstat:
_tmux.conf | 34++++++++++++++++++----------------
tmuxen | 10++++------
2 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/_tmux.conf b/_tmux.conf @@ -1,10 +1,11 @@ # # author : Xu Xiaodong <[email protected]> -# modified : 2016 May 17 +# modified : 2016 Jul 03 # #-- base settings --# set -g default-terminal "screen-256color" +set -ga terminal-overrides ",rxvt-unicode-256color:Tc" set -g display-time 3000 set -g history-limit 65535 set -g base-index 1 @@ -52,12 +53,10 @@ bind -t vi-copy v begin-selection # select (v) bind -t vi-copy y copy-selection # copy (y) # app -bind ! splitw htop # htop (prefix !) -bind m command-prompt "splitw 'exec man %%'" # man (prefix m) -bind @ command-prompt "splitw 'exec perldoc -t -f %%'" # perl func (prefix @) -bind * command-prompt "splitw 'exec perldoc -t -v %%'" # perl var (prefix *) -bind % command-prompt "splitw 'exec perldoc -t %%'" # perl doc (prefix %) -bind / command-prompt "splitw 'exec ri %%'" # ruby doc (prefix /) +bind ! splitw htop # htop (prefix !) +bind m command-prompt "splitw 'exec man %%'" # man (prefix m) +bind % command-prompt "splitw 'exec perldoc -t %%'" # perl doc (prefix %) +bind / command-prompt "splitw 'exec ri %%'" # ruby doc (prefix /) # reload config (prefix r) bind r source ~/.tmux.conf \; display "Configuration reloaded!" @@ -71,14 +70,17 @@ setw -g automatic-rename off #-- colorscheme --# # statusbar -set -g status-justify left -set -g status-style "fg=#b9b9b9,bg=#101010,dim" -set -g status-left "#[default]► " -set -g status-left-length 20 -set -g status-right "#[fg=#686868]#(/home/xiaodong/bin/uptime) • #(cut -d ' ' -f 1-3 /proc/loadavg)" -set -g status-right-length 80 +set -g status-justify right +set -g status-left "" +set -g status-right "" +set -g status-style "fg=#ebdbb2,bg=#282828" # window -setw -g window-status-format "#I:#W#F" -setw -g window-status-current-format "#I:#W#F" -setw -g window-status-current-style "fg=#8e8e8e,bg=#101010,bold" +setw -g window-status-separator " " +setw -g window-status-format "━━" +setw -g window-status-current-format "━━" +setw -g window-status-current-style "fg=#d79921,bg=#282828" + +# pane +set -g pane-border-style "fg=#ebdbb2" +set -g pane-active-border-style "fg=#d79921" diff --git a/tmuxen b/tmuxen @@ -4,7 +4,7 @@ # author : Xu Xiaodong <[email protected]> # license : GPL # created : 2012 Jul 01 -# modified : 2016 May 17 +# modified : 2016 Jul 03 # cmd=$(which tmux) # tmux path @@ -18,12 +18,10 @@ fi $cmd has -t $session 2> /dev/null if [ $? -ne 0 ]; then - $cmd new -d -n vim -s $session "vim" - $cmd neww -n ipy -t $session "ipython --profile toyland" - $cmd neww -n irc -t $session "irssi" - $cmd neww -n top -t $session "htop" + $cmd new -d -n irc -s $session "irssi" + $cmd neww -n vim -t $session "nvim" $cmd neww -n zsh -t $session "zsh" - $cmd selectw -t $session:5 + $cmd selectw -t $session:3 fi $cmd att -t $session