Skip to content

Instantly share code, notes, and snippets.

@Ilazki
Created March 20, 2020 17:57
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 Ilazki/21c430f7fb05424df3b510329a04fde0 to your computer and use it in GitHub Desktop.
Save Ilazki/21c430f7fb05424df3b510329a04fde0 to your computer and use it in GitHub Desktop.
#################
## Misc. settings
set-option -g prefix `
# Backup for nested tmux sessions
set-option -g prefix2 C-b
# Better compatibility with some programs
set-option -g default-terminal screen-256color
# Starting at 0 is kind of annoying.
set-option -g base-index 1
#bind-key a send-prefix
setw -g mouse on
# default message time is too short
set-option -g display-time 2000
#################
## Colour / theme
#set-option -g status-left "#[fg=brightyellow][#S] "
set-option -g status-left "#[fg=black]#[bg=brightgreen]#{=8:host}#[fg=brightblack]║#[fg=brightgreen]#[bg=brightblack]║ "
set-option -g status-right "|#[fg=brightyellow]%H:%M #[fg=yellow]%d-%b-%y "
set-option -g status-position bottom
set-window-option -g status-bg brightblack
set-window-option -g status-fg brightwhite
set-window-option -g window-status-current-bg blue
set-window-option -g window-status-current-fg black
set-window-option -g pane-active-border-style bg=brightblack,fg=brightblack
set-window-option -g pane-border-style bg='#222222',fg='#222222'
#set-window-option -g pane-active-border-style fg=brightblue
##############
## Keybindings
unbind [
unbind ]
unbind x
bind-key ` send-prefix
bind-key Escape copy-mode
bind-key k kill-window
bind-key x kill-pane
bind-key | split-window -h
bind-key \ split-window -h
bind-key - split-window -v
#bind-key Tab select-window -n
bind-key Tab select-pane -t {next}
bind-key C-Tab select-pane -t {previous}
bind-key F1 select-pane -t {previous}
bind-key F2 select-pane -t {next}
bind-key [ set -g mouse on
bind-key ] set -g mouse off
bind-key / display-panes -d 3000
bind-key Bspace confirm-before -p "End session? (y/n)" kill-session
bind-key + choose-tree -Z
bind-key _ choose-client -Z
bind-key h run-shell "man tmux"
bind-key W run-shell "curl 'https://wttr.in/?nT'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment