Last active
August 25, 2017 07:47
-
-
Save Ajnasz/553346f3938afc0b7786 to your computer and use it in GitHub Desktop.
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 the prefix to ^A. | |
| unbind C-b | |
| set -g prefix C-a | |
| bind a send-prefix | |
| bind-key C-a last-window | |
| bind-key Tab select-pane -D | |
| bind-key k select-pane -U | |
| bind-key j select-pane -D | |
| bind-key h select-pane -L | |
| bind-key l select-pane -R | |
| bind-key M-j resize-pane -D 5 | |
| bind-key M-k resize-pane -U 5 | |
| bind-key M-l resize-pane -R 5 | |
| bind-key M-h resize-pane -L 5 | |
| bind-key -T copy-mode-vi 'v' send -X begin-selection | |
| bind-key -T copy-mode-vi 'y' send -X copy-pipe "xclip -sel clip -i" | |
| # bind-key -t vi-copy 'v' begin-selection | |
| # bind-key -t vi-copy 'y' copy-pipe "xclip -sel clip -i" | |
| bind-key ] run-shell "xclip -sel clip -o | tmux load-buffer - ; tmux paste-buffer" | |
| set-window-option -g mode-keys vi | |
| set-option -g lock-comand vlock | |
| set-option -g lock-after-time 900 | |
| set -g status-keys vi | |
| #http://fedoratux.blogspot.com/2009/11/migrating-to-tmux-from-gnuscreen.html | |
| # History | |
| set -g history-limit 1000 | |
| # Terminal emulator window title | |
| set -g set-titles on | |
| set -g set-titles-string '#S:#I.#P #W' | |
| # Notifying if other windows has activities | |
| setw -g monitor-activity on | |
| set -g visual-activity on | |
| # Highlighting the active window in status bar | |
| setw -g window-status-current-bg red | |
| set -g pane-active-border-bg default | |
| # set -g status-bg blue | |
| set -g default-terminal "tmux-256color" | |
| set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION" | |
| set -s escape-time 0 | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-battery' | |
| set -g @plugin 'tmux-plugins/tmux-yank' | |
| run-shell '~/.tmux/plugins/tpm/tpm' | |
| set -g status-right '#{battery_icon} #{battery_percentage} | %a %h-%d %H:%M ' | |
| run-shell '~/.tmux/plugins/tmux-battery/battery.tmux' | |
| # vi:ft=tmux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment