Skip to content

Instantly share code, notes, and snippets.

@h-otter
Last active May 7, 2020 15:39
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 h-otter/1c81f3d206182bcd8da8d6a6b78b1b53 to your computer and use it in GitHub Desktop.
Save h-otter/1c81f3d206182bcd8da8d6a6b78b1b53 to your computer and use it in GitHub Desktop.
# -- default shell --
set-option -g default-shell /bin/zsh
set-option -g default-command /bin/zsh
# -- prefix --
set -g prefix C-s
unbind C-b
# -- line max --
set -g history-limit 50000
# --delay --
set -sg escape-time 1
# -- mouse --
set -g mouse on
# -- keybind --
## vim
set-window-option -g mode-keys vi
## copy
bind Space copy-mode
bind p paste-buffer
bind P choose-buffer
bind > run "tmux save-buffer - | xclip -selection clipboard > /dev/null"
bind < run "xclip -selection clipboard -o | tmux load-buffer -"
## change pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
## change window
bind C-c new-window
bind C-p previous-window
bind C-n next-window
bind C-l list-window
## kill pane or window
bind C-k confirm-before -p "kill-pane? (y/n)" kill-pane
bind S set-window-option synchronize-panes
# -- design --
set-option -g status-interval 1
set-option -g status-style bg="colour238",fg="colour255"
set-option -g status-left-length 20
set-option -g status-left "#[fg=colour255,bg=colour241]Session: #S #[default]"
set-option -g status-right-length 40
set-option -g status-right '#[fg=colour255,bg=colour241] #h | %m/%d %H:%M:%S#[default]'
set-option -g pane-active-border-style fg=brightblue
set-window-option -g window-status-format "#I: #W"
set-window-option -g window-status-current-style bg="colour27",fg="colour255"
set-window-option -g window-status-current-format " #I: #W "
@h-otter
Copy link
Author

h-otter commented May 28, 2016

for byobu

@h-otter
Copy link
Author

h-otter commented Sep 9, 2016

good bye byobu

@h-otter
Copy link
Author

h-otter commented May 5, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment