aboutsummaryrefslogtreecommitdiff
path: root/tmux.config
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2016-11-15 16:09:43 -0700
committerCody Hiar <codyfh@gmail.com>2016-11-15 16:09:43 -0700
commit590bd12554910e6546a6f9f88e1e22f305980d1d (patch)
tree5a927aadd49d1ed3b3f49f366273cf854d1cfa67 /tmux.config
parentf509949b61f7f7149947ebddd64a011133368710 (diff)
Updating the tmux config to be better organized
Diffstat (limited to 'tmux.config')
-rw-r--r--tmux.config78
1 files changed, 35 insertions, 43 deletions
diff --git a/tmux.config b/tmux.config
index 99049cf..f6d5c69 100644
--- a/tmux.config
+++ b/tmux.config
@@ -1,59 +1,66 @@
-# Resize pane single keys
-bind-key + resize-pane -D 20
-bind-key - resize-pane -U 20
-bind-key / resize-pane -L 20
-bind-key * resize-pane -R 20
+#####################################
+# Bindings
+#####################################
# Vim movements
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
-
# Kill without prompting
-bind-key x kill-pane
-bind-key & kill-window
+bind x kill-pane
+bind & kill-window
+# Easy resizing of the pane
+bind C-j resize-pane -D 3
+bind C-k resize-pane -U 3
+bind C-h resize-pane -L 3
+bind C-l resize-pane -R 3
+# Setup 'v' to begin selection as in Vim
+bind -t vi-copy v begin-selection
+bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
+# Update default binding of `Enter` to also use copy-pipe
+unbind -t vi-copy Enter
+bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
+# Bind the last window command
+bind C-b last-window
+# Synchronize mode, how the fuck did I not know about this
+bind a set-window-option synchronize-panes
+
+#####################################
+# Settings
+#####################################
# Help with the color problems
set -g default-terminal "screen-256color"
-
# Mouse Scrolling
set-option -g mouse on
-
-#Use vim keybindings in copy mode
+# Use vim keybindings in copy mode and help menus
setw -g mode-keys vi
-
-# Setup 'v' to begin selection as in Vim
-bind-key -t vi-copy v begin-selection
-bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
-
-# Update default binding of `Enter` to also use copy-pipe
-unbind -t vi-copy Enter
-bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
-
# Set the display panes timeout
set-option -g display-panes-time 4000
-
-# Change binding for display panes
-bind-key b display-panes
-
# Allow pbcopy inside of session
set-option -g default-command "reattach-to-user-namespace -l zsh"
+# Make the escape faster, faster command sequences
+set -s escape-time 0
+# Deal with screens having different
+set-window-option -g aggressive-resize
+# Use base 1 numbering, 0 base is a big stretch
+set -g base-index 1
+setw -g pane-base-index 1
-### COLOUR (Solarized dark)
+#####################################
+# Colors
+#####################################
# default statusbar colors
set-option -g status-bg colour66 #base02
set-option -g status-fg colour229 #yellow
-
# pane border
set-option -g pane-border-fg colour23 #base02
set-option -g pane-active-border-fg colour23 #base01
-
## message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour196 #orange
-
set-option -g status on
set-option -g status-interval 2
set-option -g status-justify "centre"
@@ -62,18 +69,3 @@ set-option -g status-right-length 90
set-option -g status-left "#(~/.tmux/powerline.sh left)"
set-option -g status-right "#(~/.tmux/powerline.sh right)"
-# Make the escape faster, faster command sequences
-set -s escape-time 0
-
-# Deal with screens having different
-set-window-option -g aggressive-resize
-
-# Bind the last window command
-bind-key C-b last-window
-
-# Use base 1 numbering, 0 base is a big stretch
-set -g base-index 1
-setw -g pane-base-index 1
-
-# Synchronize mode, how the fuck did I not know about this
-bind a set-window-option synchronize-panes