-
-
Save devstefancho/dfc1ae5f4c81dbe35b13e855bec16040 to your computer and use it in GitHub Desktop.
tmux config
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
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-Space | |
# Vim-like key bindings for pane navigation (default uses cursor keys). | |
unbind h | |
bind h select-pane -L | |
unbind j | |
bind j select-pane -D | |
unbind k | |
bind k select-pane -U | |
unbind l # normally used for last-window | |
bind l select-pane -R | |
# Intuitive window-splitting keys. | |
bind | split-window -h -c '#{pane_current_path}' # normally prefix-% | |
bind - split-window -v -c '#{pane_current_path}' # normally prefix-" | |
# Resizing (mouse also works). | |
unbind Left | |
bind -r Left resize-pane -L 5 | |
unbind Right | |
bind -r Right resize-pane -R 5 | |
unbind Down | |
bind -r Down resize-pane -D 5 | |
unbind Up | |
bind -r Up resize-pane -U 5 | |
# Status bar. | |
set -g status-bg '#343d46' | |
set -g status-fg white | |
set -g status-left-length 40 | |
set -g status-left '#[fg=yellow]#S ⧉ ' | |
set -g status-right "#[fg=yellow]$USER@#h #[fg=magenta]%l:%M %p" | |
set -g status-interval 60 # Default is 15. | |
# Highlight active window. | |
set -w -g window-status-current-style bg="#4b6584",fg=green,blink | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment