-
-
Save beyoung/c96233a94b06baea712f56d00f13ec51 to your computer and use it in GitHub Desktop.
My tmux configuration
This file contains hidden or 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
run-shell "powerline-daemon -q" | |
source "$HOME/.local/lib/python3.8/site-packages/powerline/bindings/tmux/powerline.conf" | |
set -g default-terminal "xterm-256color" | |
# set-option -g default-command "/usr/local/bin/reattach-to-user-namespace -l /bin/zsh" | |
# install reattach-to-user-namespace first | |
# --> brew install reattach-to-user-namespace | |
new-session | |
# unbind the defualt tmux prefix key | |
unbind C-b | |
set-option -g prefix C-s | |
set-option -g renumber-windows on | |
set-window-option -g mode-keys vi | |
set -sg escape-time 0 | |
bind-key C-x kill-pane | |
bind-key C-s last-window | |
bind-key C-a new-window -c '#{pane_current_path}' | |
bind-key C-d detach | |
bind-key a new-window -c '#{pane_current_path}' | |
bind-key d split-window -h -c '#{pane_current_path}' | |
bind-key D split-window -v -c '#{pane_current_path}' | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
bind-key . resize-pane -R 5 | |
bind-key , resize-pane -L 5 | |
bind-key [ resize-pane -U 5 | |
bind-key ] resize-pane -D 5 | |
bind-key c copy-mode | |
set -g pane-border-style fg=colour238 | |
set -g pane-active-border-style "bg=default fg=colour238" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment