Skip to content

Instantly share code, notes, and snippets.

@Duologic
Last active August 29, 2015 14:01
Show Gist options
  • Save Duologic/e25e37eccb46e3f6d43c to your computer and use it in GitHub Desktop.
Save Duologic/e25e37eccb46e3f6d43c to your computer and use it in GitHub Desktop.
# .tmux.conf [18/202]
## General settings
unbind C-b
set -g prefix C-a
set -g history-limit 5000
set -g bell-action any
set -g display-panes-time 2000
set -g base-index 0
set -g set-titles on
set -g set-titles-string "#H.tmux.#I.#W"
set -g lock-command asciiquarium
## Keybindings
bind-key a send-prefix
bind-key C-a last-window
bind-key C-l lock-session
bind-key k confirm kill-window
bind-key K confirm kill-server
bind-key b set-option status
bind-key C-right next
bind-key C-left prev
bind / command-prompt "split-window 'exec man %%'"
bind '~' split-window "exec htop"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
## Statusbar
set -g display-time 2000
set -g status-justify centre
set -g status-right ""
set -g status-left ""
set -g status-left "[#[default] #H #[default]]"
set -g status-right "[ #[fg=cyan,bright]%a %Y-%m-%d %H:%M #[default]]"
set -g status-right-length 50
bind-key C-a last-window
set -g base-index 1
setw -g aggressive-resize on
## Clipboard
bind Y run "tmux show-buffer | xsel -i -b"
bind P run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment