Skip to content

Instantly share code, notes, and snippets.

@harrisoncramer
Created May 28, 2021 22:58
Show Gist options
  • Save harrisoncramer/08f1904a8fff04b453af9da2794fdace to your computer and use it in GitHub Desktop.
Save harrisoncramer/08f1904a8fff04b453af9da2794fdace to your computer and use it in GitHub Desktop.
set -g default-terminal "screen-256color"
set -g mouse on
set-option -g prefix C-b
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# and now unbind keys
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
set -g automatic-rename-format '#{pane_current_path}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment