Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Desativa o CTRL+B e ativa o CTRL+A como leader key
- unbind C-b
- set -g prefix C-a
- # Indece das janelas sempre começando em 0
- set -g base-index 0
- # Reclassifica o indece sempre que uma janela é destruida
- set -g renumber-windows on
- # Tamanho do buffer
- set -g history-limit 9000
- # Navegando entre panels uusando Alt+HJKL
- bind -n M-l select-pane -L
- bind -n M-h select-pane -R
- bind -n M-k select-pane -U
- bind -n M-j select-pane -D
- # Mode-keys
- setw -g mode-keys vi
- # Unbinding previous bind
- unbind-key -T copy-mode-vi v
- # Begin selection in copy mode
- bind-key -T copy-mode-vi v send -X begin-selection
- bind-key -T copy-mode-vi y send -X copy-selection
- bind-key -T copy-mode-vi r send -X rectangle-toggle
- # Copy from tmux to system buffer
- bind -T copy-mode-vi y send -X copy-pipe "xclip -sel clip -i"
- # Switching between windows using Shift+arrow
- bind -n S-Left previous-window
- bind -n S-Right next-window
- # Reload tmux settings (~/.tmux.config file) using <prefix>-r
- bind r \
- source-file ~/.tmux.conf\;\
- display "TMUX conf reloaded!"
- # Toggle synchronized panes at the current window using <prefix>-P
- bind P \
- setw synchronize-panes\;\
- display "Synced Panes are #{?pane_synchronized,on,off}, Captain!"
- # Kill pane without confirmation
- bind-key x kill-pane
- # Enable mouse mode
- set -g mouse on
- # C-z zoom current pane
- unbind C-z
- bind -n C-z resize-pane -Z
- # Use v to trigger selection
- bind-key -T copy-mode-vi v send-keys -X begin-selection
- # Create splits and vertical splits
- bind-key v split-window -h -p 50 -c "#{pane_current_path}"
- bind-key ^V split-window -h -p 50 -c "#{pane_current_path}"
- bind-key h split-window -p 50 -c "#{pane_current_path}"
- bind-key ^H split-window -p 50 -c "#{pane_current_path}"
- #___________________________________________________________________
- # Theme: Status Bar
- set -g status-justify left
- set -g status-bg colour235
- set -g status-fg colour6
- set -g status-interval 2
- set -g status-left-length 50
- set -g status-left '#[bg=colour196]#[fg=colour235] TMUX #[bg=colour235]#[fg=colour99] ( W #[fg=white]#I#[fg=colour99] P #[fg=white]#P #[fg=colour99]) '
- set -g status-right '#[fg=colour231]#(whoami) #[fg=colour155]@ #[fg=colour51](#S) '
- # Theme: Clock
- setw -g clock-mode-colour colour155
- source "/usr/share/powerline/bindings/tmux/powerline.conf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement