Skip to content

Instantly share code, notes, and snippets.

@levicook
Created February 21, 2021 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save levicook/d246ca0a081b06dda61295d18a78c89c to your computer and use it in GitHub Desktop.
Save levicook/d246ca0a081b06dda61295d18a78c89c to your computer and use it in GitHub Desktop.
# set -g default-command "reattach-to-user-namespace /bin/bash --login"
# bind y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# set -g default-command "/bin/bash --login"
set -g default-command "${SHELL} -l"
bind y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind | split-window -h # C-a | to create horizontal pane
bind - split-window -v # C-a - to create vertical pane
# moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes - C-a <arrow key>
unbind Up
bind Up resize-pane -U 4
unbind Down
bind Down resize-pane -D 4
unbind Left
bind Left resize-pane -L 10
unbind Right
bind Right resize-pane -R 10
set -g default-terminal "screen-256color"
setw -g mode-keys vi # enable vi keys
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment