tmux has a configuration file which let’s you change so many things. It lets you change the shortcuts, colors, etc.
The default address for tmux configuration file is ~/.tmux.conf
You could pass the configuration file like below
$ tmux -f FILE_ADDRESS
let’s take a look at a simple config file.
# Set status line background colour. set-option -g status-bg red # Display string (by default the session name) to the left of the # status line. string will be passed through strftime(3). Also # see the FORMATS and STYLES sections. # # For details on how the names and titles can be set see the # NAMES AND TITLES section. # # Examples are: # # #(sysctl vm.loadavg) # #[fg=yellow,bold]#(apm -l)%%#[default] [#S] # The default is ‘[#S] ’. set-option -g status-left " #h |" # Set the maximum length of the left component of the status # line. The default is 10. set-option -g status-left-length 20 # Display string to the right of the status bar. By default, the current window # title in double quotes, the date and the time are shown. As with status-left, # string will be passed to strftime(3), character pairs are replaced, and UTF-8 # is dependent on the status-utf8 option. set-option -g status-right "<#S> #(date +'%H:%M %d-%h-%Y')" # Set the maximum number of lines held in window history. This setting applies # only to new windows - existing window histories are not resized and retain the # limit at the point they were created. set -g history-limit 10000
From https://linux.die.net/man/1/tmux tmux allows a command to be bound to most keys, with or without a prefix key. When specifying keys, most represent themselves (for example ‘A’ to ‘Z’). Ctrl keys may be prefixed with ‘C-’ or ‘^’, and Alt (meta) with ’M-‘. In addition, the following special key names are accepted: Up, Down, Left, Right, BSpace, BTab, DC (Delete), End, Enter, Escape, F1 to F20, Home, IC (Insert), NPage (Page Up), PPage (Page Down), Space, and Tab.
From https://linux.die.net/man/1/tmux The appearance and behaviour of tmux may be modified by changing the value of various options. There are three types of option: server options, session options and window options. The tmux server has a set of global options which do not apply to any particular window or session. These are altered with the set-option -s command, or displayed with the show-options -s command. In addition, each individual session may have a set of session options, and there is a separate set of global session options.