Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Enable mouse support
- set -g mouse on
- # Set the history limit
- set -g history-limit 100000
- # Remap prefix from 'C-b' to 'C-Space'
- unbind C-b
- set -g prefix C-Space
- # Set the delay between prefix and command
- set -s escape-time 5
- # Create new window with 'w'
- unbind w #Default key: change current window interactively
- bind w new-window -c "#{pane_current_path}"
- # Remane window with 'n'
- unbind n #Default key: Move to next window
- bind n command-prompt "rename-window '%%'"
- # Set automatic renameing
- set -g allow-rename on
- # Prompt to rename window right after it's created
- set-hook -g after-new-window 'command-prompt -I "#{window_name}" "rename-window '%%'"'
- # Split panes using | and -
- unbind '"'
- bind - split-window -v
- unbind %
- bind \\ split-window -h
- # Switch panes using Alt-arrow without prefix
- bind-key -n M-Left select-pane -L
- bind-key -n M-Right select-pane -R
- bind-key -n M-Up select-pane -U
- bind-key -n M-Down select-pane -D
- # Resizing panes panes using Shift-arrow without prefix
- bind-key -n S-Left resize-pane -L 5
- bind-key -n S-Right resize-pane -R 5
- bind-key -n S-Up resize-pane -U 5
- bind-key -n S-Down resize-pane -D 5
- # Set C-r to reload this configuration file
- unbind r
- bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
- # Set parent terminal title to reflect current window in tmux session
- # set -g set-titles on
- # set -g set-titles-string "#I:#W"
- # Start index of window/pane with 1, because we're humans, not computers
- set -g base-index 1
- setw -g pane-base-index 1
- # Set vi as the default editor
- set -g status-keys vi
- # Set copy mode naviagtion to vi
- set-window-option -g mode-keys vi
- # Set select to v
- unbind -T copy-mode-vi Space
- bind -T copy-mode-vi v send-keys -X begin-selection
- # Set copy to y and pipe buffer to clipboard
- unbind -T copy-mode-vi Enter
- bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel --clipboard"
- #####################
- ### STYLE CHANGES ###
- #####################
- # Print color names
- # for i in {0..255}; do printf "\x1b[38;5;${i}mcolor%-5i\x1b[0m" $i ; if ! (( ($i + 1 ) % 8 )); then echo ; fi ; done
- # loud or quiet?
- set -g visual-activity off
- set -g visual-bell off
- set -g visual-silence off
- setw -g monitor-activity off
- set -g bell-action none
- # modes
- setw -g clock-mode-style 24
- setw -g clock-mode-color color220
- setw -g mode-style 'bg=color250 fg=color0' # selection style
- # panes
- set -g pane-border-style 'bg=color232 fg=color238'
- set -g pane-active-border-style 'bg=color0 fg=color250'
- set -g pane-border-status off
- # set -g pane-border-status top
- # set -g pane-border-format "#P: #{pane_current_command}"
- # statusbar
- set -g status-position bottom
- set -g status-justify left
- set -g status-style 'bg=color232 fg=color250 '
- set -g status-left ''
- set -g status-right '#[bg=color40,fg=color232] %d/%m #[bg=color39,fg=color232] %H:%M:%S '
- set -g status-right-length 50
- set -g status-left-length 20
- setw -g window-status-current-style 'bg=color220,fg=color235 bold'
- setw -g window-status-current-format ' #I#[fg=color235]:#[fg=color232]#W#[fg=color235]#F '
- setw -g window-status-style 'bg=color240 fg=color247'
- setw -g window-status-format ' #I#[fg=color247]:#[fg=color255]#W#[fg=color247]#F '
- setw -g window-status-bell-style 'fg=color255 bg=color1 bold'
- # messages
- set -g message-style 'fg=color232 bg=color220 bold'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement