Last active
September 9, 2023 09:33
-
-
Save trungnt13/34a8b101ab7fe14f7f0f194d1f63ad6c to your computer and use it in GitHub Desktop.
tmux_linux.conf
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
# 09Sep23 v1 | |
# https://gist.githubusercontent.com/trungnt13/34a8b101ab7fe14f7f0f194d1f63ad6c/raw/ea9293953796d78b8b93e67e046a5583c6cc6d39/tmux_linux.conf | |
# 09Sep23 v2 | |
# https://gist.githubusercontent.com/trungnt13/34a8b101ab7fe14f7f0f194d1f63ad6c/raw/51dc5214e47d648039dffe83908e603ab07bf9c2/tmux_linux.conf | |
set -g history-limit 100000 | |
## Change background and border of active pane | |
set-option -g pane-border-style fg=default,bg=default | |
set-option -g pane-active-border-style fg=red,bg=default | |
set-option -g default-terminal "screen-256color" | |
set -g window-style "bg=black" | |
set -g window-active-style "bg=#000000" | |
### copy-mode | |
# Set custom key bindings for copy mode | |
bind-key -T copy-mode 'i' send-keys -X cursor-up | |
bind-key -T copy-mode 'k' send-keys -X cursor-down | |
bind-key -T copy-mode 'j' send-keys -X cursor-left | |
bind-key -T copy-mode 'l' send-keys -X cursor-right | |
bind-key -T copy-mode 'u' send-keys -X start-of-line | |
bind-key -T copy-mode 'o' send-keys -X end-of-line | |
bind-key -T copy-mode '.' send-keys -X page-up | |
bind-key -T copy-mode ',' send-keys -X page-down | |
# selection and clipboard | |
bind-key -T copy-mode '[' send-keys -X begin-selection | |
bind-key -T copy-mode 'Space' send-keys -X begin-selection | |
bind-key -T copy-mode ']' send-keys -X clear-selection | |
bind-key -T copy-mode Enter send-keys -X copy-selection-and-cancel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment