Skip to content

Instantly share code, notes, and snippets.

@melgart
Created September 21, 2021 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melgart/a681d443fde8a45bdf06b15a573574e6 to your computer and use it in GitHub Desktop.
Save melgart/a681d443fde8a45bdf06b15a573574e6 to your computer and use it in GitHub Desktop.
Customize your tmux environment with a specific configuration file
#
# 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