Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################################################
- ### tmux #############################################################
- ########################################################################
- ### status bar #######################################################
- set -g status-bg black
- set -g status-fg white
- set-option -g status-justify centre
- set -g status-position bottom
- set -g status-right "%a. %b. %d, %I:%M"
- setw -g monitor-activity on
- set -g visual-activity on
- set -g status-interval 1
- ########################################################################
- ### locale ###########################################################
- set -g utf8 on
- set -g status-utf8 on
- ########################################################################
- ### windows start at one, not zero ###################################
- set -g base-index 1
- set -g pane-base-index 1
- ########################################################################
- # rename windows automatically
- set-option -g allow-rename on
- set-window-option -g automatic-rename
- set -g default-terminal "screen-256color" # 256 color support
- set-option -g history-limit 256 # history buffer length
- set -sg escape-time 1 # lower command delay
- setw -g aggressive-resize on
- setw -g mode-keys vi
- ### shell ############################################################
- set -g default-command /bin/zsh
- set -g default-shell /bin/zsh
- ########################################################################
- ### autorename terminals #############################################
- set -g set-titles on
- ########################################################################
- ########################################################################
- ### keybinds #########################################################
- ########################################################################
- ### remap modkey #####################################################
- # NOTE: CTRL+A might interfere with bash’s “go to beginning of line” command
- unbind C-b
- set-option -g prefix C-a
- bind-key C-a send-prefix
- ########################################################################
- ### vim-like keybinds for windows and splits #########################
- # bind-key v split-window -h -c "#{pane_current_path}"
- # bind-key s split-window -v -c "#{pane_current_path}"
- bind h select-pane -L
- bind j select-pane -D
- bind k select-pane -U
- bind l select-pane -R
- ########################################################################
- ### reasonable pane splitting ########################################
- bind | split-window -h -c "#{pane_current_path}"
- bind - split-window -v -c "#{pane_current_path}"
- unbind '"'
- unbind %
- ########################################################################
- ### switch panes using Alt-arrow without prefix ######################
- bind -n M-Left select-pane -L
- bind -n M-Right select-pane -R
- bind -n M-Up select-pane -U
- bind -n M-Down select-pane -D
- ########################################################################
- ### resize panes #####################################################
- # bind-key -n M-Up resize-pane -U 15
- # bind-key -n M-Down resize-pane -D 15
- # bind-key -n M-Left resize-pane -L 15
- # bind-key -n M-Right resize-pane -R 15
- ########################################################################
- bind C-a send-prefix # pass through a ctrl-a if you press it twice
- bind-key b set-option status # toggle statusbar
- ### bind r to reload config
- bind r source-file ~/.tmux.conf \; display "reloaded tmux config!"
- ########################################################################
- ### mouse ############################################################
- ########################################################################
- ### enable clickable windows, panes, resizable panes
- #set -g mode-mouse on
- #set -g mouse-select-window on
- #set -g mouse-select-pane on
- #set -g mouse-resize-pane on
- ###
- # tmux 2.1 and later
- # set -g mouse on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement