Created
August 15, 2015 16:26
-
-
Save simon2k/70ff31913855108d1d1d to your computer and use it in GitHub Desktop.
tmux config
This file contains hidden or 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
# set-option start index | |
set-option -g base-index 1 | |
# default time to repeat | |
set-option -g repeat-time 1000 | |
# reload.. | |
bind-key r source-file ~/.tmux.conf \; display "Reloaded!" | |
# bind-key keys for split window | |
bind-key h split-window | |
bind-key v split-window -h | |
# bind-key keys for move between panes | |
bind-key -n C-h select-pane -L | |
bind-key -n C-j select-pane -D | |
bind-key -n C-k select-pane -U | |
bind-key -n C-l select-pane -R | |
unbind-key o | |
# bind-key keys for resize panes | |
bind-key -r H resize-pane -L | |
bind-key -r J resize-pane -D | |
bind-key -r K resize-pane -U | |
bind-key -r L resize-pane -R | |
# bind-key keys for move betwen windows | |
bind-key -r C-h select-window -t :- | |
bind-key -r C-l select-window -t :+ | |
# disable mouse | |
setw -g mode-mouse on | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
# set-option default colors | |
set-option -g default-terminal "screen-256color" | |
# bind-key keys for move in buffer | |
setw -g mode-keys vi | |
# copying text | |
unbind-key [ | |
bind-key c copy-mode | |
unbind-key p | |
bind-key p paste-buffer | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
bind-key C-c run "tmux save-buffer - | xclip -i -sel clipboard" | |
bind-key C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" | |
# maximizing and restoring pane | |
bind-key u new-window -d -n tmp \; swap-pane -s tmp.0 \; select-window -t tmp | |
bind-key m last-window \; swap-pane -s tmp.0 \; kill-window -t tmp | |
# bind-key keys for open new window | |
bind-key n new-window | |
bind-key N new-window -d | |
#### COLOUR | |
# from https://github.com/seebi/tmux-colors-solarized.git | |
# default statusbar colors | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour244 | |
set-window-option -g window-status-bg default | |
#set-window-option -g window-status-attr dim | |
# active window title colors | |
set-window-option -g window-status-current-fg colour166 #orange | |
set-window-option -g window-status-current-bg default | |
#set-window-option -g window-status-current-attr bright | |
# pane border | |
set-option -g pane-border-fg colour235 #base02 | |
set-option -g pane-active-border-fg colour231 #base01 | |
# message text | |
set-option -g message-bg colour235 #base02 | |
set-option -g message-fg colour166 #orange | |
# pane number display | |
set-option -g display-panes-active-colour colour33 #blue | |
set-option -g display-panes-colour colour166 #orange | |
# clock | |
set-window-option -g clock-mode-colour colour64 #green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment