diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2016-11-03 08:59:19 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2016-11-03 08:59:19 -0700 |
commit | ecbb0f1bf78afbfed0dcf9fe155ad790a05d19e0 (patch) | |
tree | 69312f4760fab8acb60a89ee9654cf4d8bdbe5f7 | |
parent | [emacs] Nicer configuration for flycheck. (diff) | |
download | emacs.d-ecbb0f1bf78afbfed0dcf9fe155ad790a05d19e0.tar.gz |
Revert "[tmux] remove it (again)"
This reverts commit f82143bb2c81dec605d63f2b95a3d88a307a7974.
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | tmux.conf | 56 |
2 files changed, 58 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 9fc2c0b..88cda5b 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ INSTALL = \ aspell.en.pws \ emacs.d \ gitconfig \ - gitignore + gitignore \ + tmux.conf git: git config --local user.email "franck.cuny@gmail.com" diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..57cdddc --- /dev/null +++ b/tmux.conf @@ -0,0 +1,56 @@ +# Prefix +set-option -g prefix C-z +unbind-key C-b +bind C-t send-prefix + +set -s escape-time 1 + +# Color +set-option -g default-terminal xterm + +# View +set-option -g status-interval 5 +set-option -g status-left-length 16 +set-option -g status-right-length 50 + +set-option -g status-bg colour41 +set-option -g status-fg colour232 +set-option -g status-attr bold +set-option -g status-left '[%H:%M]' +set-option -g status-right '[#h###S:#I:#P]' +set-option -g status-right-fg red +set-option -g status-right-bg white +set-window-option -g window-status-current-bg white +set-window-option -g window-status-current-attr bold + +# move pain like Vim +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +bind-key c new-window -c "#{pane_current_path}" + +# split window +bind _ split-window -v -c "#{pane_current_path}" +bind | split-window -h -c "#{pane_current_path}" + +# move last window +bind C-z last-window +bind o last-pane + +# Option +set-window-option -g mode-keys vi +set-window-option -g automatic-rename off + +# resize pain +bind -r H resize-pane -L 2 +bind -r L resize-pane -R 2 +bind -r J resize-pane -D 2 +bind -r K resize-pane -U 2 + +# logging +bind-key Q pipe-pane "exec cat >> $HOME/tmux-#S-#W-#I.log" \; display-message 'Started logging to tmux-#S-#W-#I.log' +bind-key q pipe-pane \; display-message 'Finish logging to tmux-#S-#W-#I.log' + +bind i display-panes |