Last active
December 12, 2021 18:37
-
-
Save m0ntyG/d6c8acd9a79b0b86d64e85106b485b42 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
| # Prefix Key | |
| # Default: C-b | |
| # C-b is inconvenient to reach on the keyboard and also vim uses it. | |
| # Download via wget https://gist.github.com/andrestaffe/d6c8acd9a79b0b86d64e85106b485b42/raw/969ecbd0759a6786a9564a828c333a41f8eb4be3/tmux.conf -O .tmux.conf | |
| # This frees the key for other functions | |
| unbind-key C-b | |
| # C-y is very convenient to reach on a german keyboard, YMMV. | |
| # I don't like to use C-a because it's a readline binding to go to the | |
| # beginning of the line. | |
| set-option -g prefix C-y | |
| # secondary Prefix key | |
| #set-option -g prefix2 C-y | |
| # Set the base index for windows to 1 instead of 0 | |
| set -g base-index 1 | |
| # Set the base index for panes to 1 instead of 0 | |
| set -g pane-base-index 1 | |
| # Set bind key to reload configuration file | |
| bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
| # Enable mouse support | |
| set -g mouse on | |
| # set the status line's colors | |
| set -g status-style fg=white,bg=blue | |
| # v and h are not binded by default, but we never know in the next versions... | |
| unbind v | |
| unbind h | |
| unbind % # Split vertically | |
| unbind '"' # Split horizontally | |
| bind v split-window -h -c "#{pane_current_path}" | |
| bind h split-window -v -c "#{pane_current_path}" | |
| set -g history-limit 100000 | |
| unbind n #DEFAULT KEY: Move to next window | |
| unbind w #DEFAULT KEY: change current window interactively | |
| bind n command-prompt "rename-window '%%'" | |
| bind w new-window -c "#{pane_current_path}" | |
| bind -n M-p previous-window | |
| bind -n M-n next-window | |
| set -g @net_speed_interfaces "eth0" | |
| set -g status-right-length 60 | |
| set -g status-right "%H:%M %d.%m.%y | #{net_speed}" | |
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-net-speed' | |
| set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
| # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
| run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment