Last active
March 12, 2020 21:59
-
-
Save faroit/ee545a2cec29f5fcc26edb6fe415cfe0 to your computer and use it in GitHub Desktop.
tmux conf
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
# Usage: | |
# - Prefix is set to Ctrl-a (make sure you remapped Caps Lock to Ctrl) | |
# - All prefixed with Ctrl-a | |
# - Last used window: / | |
# - Last used pane: ; | |
# - Vertical split: v | |
# - Horizontal split: s | |
# - Previous window: [ | |
# - Next window: ] | |
# - Choose session: Ctrl-s | |
# - Quick window: Ctrl-q | |
set-option -g mouse on | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
set-option -g renumber-windows on | |
### LOOK & FEEL ### | |
set -g default-terminal "screen-256color" | |
# default statusbar colors | |
set-option -g status-bg colour235 | |
set-option -g status-fg colour179 | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour244 | |
set-window-option -g window-status-bg default | |
# active window title colors | |
set-window-option -g window-status-current-fg colour166 | |
set-window-option -g window-status-current-bg default | |
set-window-option -g window-status-current-attr bright | |
# pane border | |
set-option -g pane-border-fg colour235 | |
set-option -g pane-active-border-fg colour240 | |
# pane number display | |
set-option -g display-panes-active-colour colour33 | |
set-option -g display-panes-colour colour166 | |
# clock | |
set-window-option -g clock-mode-colour colour64 | |
# status bar right contents | |
set -g status-right-length 65 | |
set-window-option -g utf8 on | |
#no command delay | |
set -sg escape-time 0 | |
#count windows and panes from 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
### KEYS ### | |
#using C-a as prefix | |
unbind C-b | |
set-option -g prefix C-a | |
bind C-a send-prefix | |
unbind / | |
bind / last-window | |
unbind % | |
bind s split-window -v | |
unbind '"' | |
bind v split-window -h | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
unbind { | |
bind { swap-window -t -1 | |
unbind } | |
bind } swap-window -t +1 | |
bind Escape copy-mode | |
bind p paste-buffer | |
unbind [ | |
bind [ previous-window | |
unbind ] | |
bind ] next-window | |
unbind o | |
bind o select-pane -t :.- | |
bind C-q command-prompt -I "htop" -p "Quick window command: " "new-window '%%'" | |
bind C-c run "tmux save-buffer - | pbcopy" | |
bind C-v run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer" | |
bind C-s choose-session | |
set-option -g default-shell /usr/local/bin/zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment