# Renumber windows of one is closed: 0,1,2 -> 0,1 instead of 0,2 set-option -g renumber-windows on # Use vi keybindings in copy mode set-window-option -g mode-keys vi bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'y' send -X copy-selection # Use C-a as prefix unbind C-b set-option -g prefix C-a bind-key C-a send-prefix # More visual split commands 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 % # Allow to use the mouse set -g mouse on # theme set -g @themepack 'powerline/double/blue' # Allow using ctrl + arrow keys set-option -g xterm-keys on # status bar # set -g status-right '#{net_speed} | #{prefix_highlight} #{battery_icon}#{battery_percentage} | %a %h-%d %H:%M' set-window-option -g status-left " #S " set-window-option -g status-right " #{prefix_highlight} \"#(hostname)\" %H:%M %d-%b-%y " set-window-option -g window-status-format " #I: #W " set-window-option -g window-status-current-format " #I: #W " # Plugins (Keep this last) set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-copycat' set -g @plugin 'tmux-plugins/tmux-open' set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'laktak/extrakto' set -g @plugin 'jimeh/tmux-themepack' set -g @plugin 'christoomey/vim-tmux-navigator' run '~/.tmux/plugins/tpm/tpm' #ZSH set -g default-shell /bin/zsh