diff options
| author | Miquel Sabaté <mikisabate@gmail.com> | 2015-08-02 17:12:06 +0200 |
|---|---|---|
| committer | Miquel Sabaté <mikisabate@gmail.com> | 2015-08-02 17:12:06 +0200 |
| commit | 49d86c08b37797a08ad4a1dcb388bd54646192e1 (patch) | |
| tree | b0bd1f9ac3ba6fe5ffbcb71afce317449568e343 | |
| parent | effe8327668b2cfeef4d7e6fa16435971ed51c3d (diff) | |
| download | dotfiles-49d86c08b37797a08ad4a1dcb388bd54646192e1.tar.gz dotfiles-49d86c08b37797a08ad4a1dcb388bd54646192e1.zip | |
Added my own tmux config file
tmux has proved to be convenient when sharing the screen.
| -rwxr-xr-x | install.sh | 1 | ||||
| -rw-r--r-- | tmux.conf | 98 |
2 files changed, 99 insertions, 0 deletions
@@ -22,6 +22,7 @@ cp global.gitignore $HOME/.gitignore cp hgrc $HOME/.hgrc cp hgcompletion.sh $HOME/.hgcompletion.sh cp global.hgignore $HOME/.hgignore +cp tmux.conf $HOME/.tmux.conf cp rake_completion $HOME/.rake_completion cp rvmrc $HOME/.rvmrc chmod +x $HOME/.rake_completion diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..580f071 --- /dev/null +++ b/tmux.conf @@ -0,0 +1,98 @@ +# tmux configuration based on: https://github.com/0xAX/my-dotfiles + +# +# Keybindings +# +set -g prefix C-x +bind C-x send-prefix +unbind C-x + +unbind C-b +unbind C-a +unbind % +unbind , +unbind . +unbind n +unbind p +unbind [ +unbind '"' +unbind l +unbind & +unbind "'" +unbind w + +# +# manage windows +# +bind-key n new-window +bind-key k kill-window +bind-key 2 split-window -h +bind-key 3 split-window + +bind -n C-Right next-window +bind -n C-Left previous-window + +# +# manage panes +# +bind-key x kill-pane + +bind -n S-Up select-pane -U +bind -n S-Down select-pane -D +bind -n S-Left select-pane -L +bind -n S-Right select-pane -R + +bind -n M-S-Up resize-pane -U +bind -n M-S-Down resize-pane -D +bind -n M-S-Left resize-pane -L +bind -n M-S-Right resize-pane -R + +# +# misc +# +set -g history-limit 1500 +set -g default-terminal "screen-256color" +set -g bell-action none + +set-window-option -g utf8 on +set-window-option -g mode-mouse off + +set-window-option -g automatic-rename on +set-option -g set-titles on +setw -g monitor-activity on +set -g base-index 1 +setw -g pane-base-index 1 + +# +# ui +# +set -g status-fg white +set -g status-bg "#283137" + +set-window-option -g status-left " #S " +set-window-option -g status-left-fg white +set-window-option -g status-left-bg "#283137" + +set-window-option -g status-right " %H:%M %d-%b-%y " +set-window-option -g status-right-fg white +set-window-option -g status-right-bg "#283137" + +# active window +set-window-option -g window-status-format "#I: #W" +set-window-option -g window-status-current-fg white +set-window-option -g window-status-current-bg black + +# non-active +setw -g window-status-fg "#888879" +setw -g window-status-bg "#283137" + +set -g pane-border-fg magenta +set -g pane-active-border-fg white + +# coping inside tmux +bind c copy-mode +bind p paste-buffer +# copy from system to tmux +bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer" +# copy from tmux to system +bind C-v run-shell "tmux show-buffer | xclip -sel clip -i > /dev/null" |
