Last active
September 13, 2022 13:10
-
-
Save levicook/6064727 to your computer and use it in GitHub Desktop.
Minimal sane tmux conf for OSX.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# play nice with OSX copy/paste tools | |
set -g default-command "reattach-to-user-namespace /bin/bash --login" | |
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 | |
# start windows and panes at 1, not 0 | |
set -g base-index 1 | |
set -g pane-base-index 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assuming you homebrew: | |
brew update | |
brew install tmux | |
brew install reattach-to-user-namespace | |
curl -L https://gist.github.com/levicook/6064727/raw/7273a6807b47b80800a1361b68112204c00458b0/.tmux.conf -o ~/.tmux.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment