Skip to content

Commit

Permalink
add alias to resize pane
Browse files Browse the repository at this point in the history
  • Loading branch information
roadhouse committed Nov 9, 2014
1 parent 4efa54b commit 8a4bd76
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions files/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,36 @@ bind-key N command-prompt 'rename-session %%'
bind-key Escape copy-mode -u
bind-key Up copy-mode -u
bind-key r source-file ~/.tmux.conf; display-message "~/.tmux.conf is reloaded"
bind-key k resize-pane -R 10
bind-key j resize-pane -L 10

# Moving between panes.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Synchronize panes
bind C-s setw synchronize-panes

# Resizing panes
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r H resize-pane -L 5
bind-key -r L resize-pane -R 5

# brew install reattach-to-user-namespace
# Use vim keybindings in copy mode
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-option -g default-command "reattach-to-user-namespace -l bash"


## set status bar
set-option -g status-utf8 on
Expand Down

0 comments on commit 8a4bd76

Please sign in to comment.