Created
August 28, 2011 15:16
-
-
Save uu59/1176779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set -g prefix C-j | |
set -g default-terminal "screen-256color" | |
set-option -g status-interval 1 | |
set -g display-panes-time 10000 | |
set-window-option -g mode-mouse on | |
set -g mouse-select-pane on | |
set-window-option -g mode-keys vi | |
set-window-option -g mode-bg colour249 | |
set-window-option -g mode-fg black | |
set -g status-bg colour237 | |
set -g status-fg colour15 | |
set -g message-bg colour16 | |
set -g message-fg colour231 | |
set-window-option -g window-status-current-bg colour9 | |
set-window-option -g window-status-current-attr bold | |
set -g pane-active-border-fg colour154 | |
set -g pane-active-border-bg default | |
set -g pane-border-fg colour231 | |
set -g pane-border-bg default | |
set -g status-utf8 on | |
set -g history-limit 10000 # scroll buffer size | |
set -g set-titles on | |
set -g set-titles-string "tmux.#I.#W" | |
set -g visual-activity on | |
set -g visual-content on | |
set-window-option -g monitor-activity on | |
set -g status-left "" | |
set -g status-right "#[default,fg=colour230]Fx #(ps aux|grep '[f]irefox'|awk '{sum = sum + $3} END{print sum}')% Ch #(ps aux|grep '[c]hromium-'|awk '{sum = sum + $3} END{print sum}')% #(ps --sort pcpu axo comm,pid,pcpu|grep -v -E 'firefox|chromium-'|tail -n1|sed -E 's/ +/ /g'|awk '{print $1,$3}')%#[default] %Y-%m-%d(%a) %H:%M:%S" | |
set -g status-right-length 100 | |
bind C-s command-prompt -p "split-window: input h or v" "split-window -%%" | |
bind s split-window -v | |
bind v split-window -h | |
bind C-w choose-window | |
bind C-r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | |
bind C-n next-window | |
bind C-p previous-window | |
# panes operation likes vim | |
bind C-k select-pane -U | |
bind C-j select-pane -D | |
bind C-l select-pane -R | |
bind C-h select-pane -L | |
bind C-o confirm-before "kill-pane -a" | |
bind -n C-Up resize-pane -U | |
bind -n M-C-k resize-pane -U | |
bind -n C-Down resize-pane -D | |
bind -n M-C-j resize-pane -D | |
bind -n C-Left resize-pane -L | |
# bind -n M-C-h resize-pane -L | |
bind -n C-Right resize-pane -R | |
# bind -n M-C-l resize-pane -R # os locking when using ubuntu :( | |
unbind Up | |
unbind Down | |
unbind Left | |
unbind Right |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment