Skip to content

Instantly share code, notes, and snippets.

@ogkloo
Created August 20, 2020 17:02
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 ogkloo/2456215012d9e5e24279c84c198532a3 to your computer and use it in GitHub Desktop.
Save ogkloo/2456215012d9e5e24279c84c198532a3 to your computer and use it in GitHub Desktop.
#Fix C-b sucking as a keybind
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Allows us to send a prefix to nested sessions
bind-key a send-prefix
# Rebind some keys for easier management
bind-key o split-window -h -c "#{pane_current_path}"
unbind %
bind-key u split-window -v -c "#{pane_current_path}"
unbind x
bind-key q kill-window
bind-key x killp
set -g mouse on
# Easier source reload
bind r source-file ~/.tmux.conf
# A E S T H E T I C
set -g status-position bottom
set -g status-bg default
set -g status-fg white
set -g pane-border-fg white
set -g pane-active-border-fg white
set -g status-justify left
set -g window-status-format " #[fg=default]#W "
set -g window-status-current-format " #[fg=colour218,bold]#W "
set -g window-status-current-fg default
set -g window-status-current-bg default
set -g status-left ""
#set -g status-right "#[bg=cyan,bold] #H #S #[bg=colour218,bold] #T "
#set -g status-right "#[bg=colour212,bold] #W "
set -g status-right "#[fg=colour218,bold]#S@#(hostname)"
#set -g status-right-length 50
set -g default-terminal "screen-256color"
# set -g status-utf8 on
# set -g utf8 on
set -g renumber-windows on
set -g base-index 1
set -g bell-action any
bind-key h select-pane -L
bind-key l select-pane -R
bind-key j select-pane -D
bind-key k select-pane -U
set -g set-titles
setw -g automatic-rename on
setw -g set-titles-string "#S / #W"
bind-key e set status on
bind-key b set status off
bind c new-window -c "#{pane_current_path}"
set -sg escape-time 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment