Last active
September 4, 2018 09:08
-
-
Save packmad/7fb9aed93cb0cf69e238325a6fab1c47 to your computer and use it in GitHub Desktop.
MyTmuxConf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -s escape-time 0 | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Tmux uses a 'control key', set it to 'Ctrl-Space' that is easier to reach | |
unbind C-b | |
set -g prefix C-Space | |
bind C-Space send-prefix | |
# Tmux should be pretty, we need 256 color for that | |
set -g default-terminal "screen-256color" | |
# split panes using | and -, make sure they open in the same path | |
bind \ split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}" | |
unbind '"' | |
unbind % | |
set -g status-keys vi | |
setw -g mode-keys vi | |
setw -g mouse on | |
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -i --clipboard" | |
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i --clipboard" | |
# Use Alt-arrow keys without prefix key to switch panes | |
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 | |
# Sync panes | |
bind -n M-s setw synchronize-panes on | |
bind -n M-x setw synchronize-panes off | |
# to see all the colours, in bash: | |
# for i in {0..255} ; do | |
# printf "\x1b[38;5;${i}m${i} " | |
# done | |
set -g status-interval 1 | |
set -g status-left-length 30 | |
set -g status-left '#[bg=colour14,fg=black]#h #S #[bg=colour17] ' | |
set -g status-right '#[fg=black,bg=colour14] %d/%m/%Y %H:%M:%S ' | |
set -g status-bg colour22 | |
set -g status-fg white | |
setw -g monitor-activity on | |
# tmux-finger | |
# to install: git clone --recursive https://github.com/Morantron/tmux-fingers ~/.tmux/plugins/tmux-fingers | |
set -g @fingers-key '/' | |
set -g @fingers-copy-command 'xsel -i --clipboard' | |
run-shell ~/.tmux/plugins/tmux-fingers/tmux-fingers.tmux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment