diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-01-18 18:47:49 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-01-18 18:47:49 -0500 |
| commit | 8b9f900a9a11bf0a76fa72c614cc2f422cff7623 (patch) | |
| tree | 48c3cdbab4a84a76d6d0ca748ce770e33ab65e87 /tmux.conf | |
| parent | 55998cf0225aa41795933798ddbc425b66b9523a (diff) | |
| download | dotfiles-8b9f900a9a11bf0a76fa72c614cc2f422cff7623.tar.gz dotfiles-8b9f900a9a11bf0a76fa72c614cc2f422cff7623.tar.xz | |
Update tmux configuration
Diffstat (limited to 'tmux.conf')
| -rw-r--r-- | tmux.conf | 37 |
1 files changed, 27 insertions, 10 deletions
@@ -1,7 +1,9 @@ -set -g status-bg cyan +set -g status-bg green set -g status-fg black set-window-option -g window-status-current-bg black -set-window-option -g window-status-current-fg cyan +set-window-option -g window-status-current-fg green + +# Pretty nifty little option to mirror input for all panes bind M-s setw synchronize-panes # set -g mode-mouse on @@ -9,22 +11,39 @@ setw -g mode-keys vi setw -g aggressive-resize on set -g default-terminal "screen-256color" - # Don't let command rename our windows set-option -g allow-rename off -bind-key -t vi-copy 'v' begin-selection -bind-key -t vi-copy 'y' copy-selection +# Press v to "visually" and y to "yank" the text +# Press `c-b ]` to paste +# If you ever want to look up a keybind use `c-b ?` +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-selection # Fix for certian applications such as Nvim -set -s escape-time 0 - +set -sg escape-time 0 +# Select panes with vim like bindings bind-key M-k select-pane -U bind-key M-j select-pane -D bind-key M-h select-pane -L bind-key M-l select-pane -R + +# Reload configuration +bind-key M-r source ~/.tmux.conf +# Respawn the pane ( Useful with certain +bind-key M-M-r respawn-pane + + +# Change the status line a little bit, most are close to defaults +set -g status-left-length 16 +set -g status-left "[#S] " +set -g status-right "#[fg=green,bg=black] #(whoami)@#h|up:#(uptime | awk '{print $1}' | awk -F: '{print $1}')h " +set -g status-right-length 40 +set -g window-status-format "#I:#W#F" + + # If you still want to select text out of the terminal as you normally would # You should hold the shift key ( Linux ) I'm told it's "Option on Mac OS X" set -g mouse on @@ -35,7 +54,5 @@ set -g mouse on # set-option -g mouse-select-pane on # set-option -g mouse-select-window on -set -sg escape-time 0 - - +# If you want any local configuration source ~/.tmux.conf.local |
