Created
September 21, 2021 10:53
-
-
Save melgart/a681d443fde8a45bdf06b15a573574e6 to your computer and use it in GitHub Desktop.
Customize your tmux environment with a specific configuration file
This file contains 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
# | |
# Drop this file in the home directory of whichever host will | |
# be running tmux (usually a remote server like 'tools') | |
# Afterwards, consult the tmux cheatsheet: https://tmuxcheatsheet.com/ | |
# | |
# unbind the default key commands and use Ctrl-a instead since they're | |
# closer to each other on a qwerty keyboard | |
unbind C-b | |
set -g prefix C-a | |
# ctrl+left/right cycles thru windows | |
bind-key -n C-right next | |
bind-key -n C-left prev | |
# open a man page in new window | |
bind / command-prompt "split-window 'exec man %%'" | |
# switch split window keys | |
unbind % | |
bind | split-window -h | |
bind - split-window -v | |
# quick view of processes | |
bind '~' split-window "exec htop" | |
# scrollback buffer n lines | |
set -g history-limit 50000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment