Advertisement
Guest User

Complete ~/.tmux.conf as of tmux-1.3

a guest
Sep 11th, 2010
1,255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.91 KB | None | 0 0
  1. # Pulled from the man pages for tmux 1.3
  2.  
  3. # General Notes--
  4. # colour refers to one of:
  5. # black, red, green, yellow, blue, magenta, cyan, white, colour0 to colour255
  6. # from the 256-colour palette, or default.
  7. #
  8. # attributes refers to one or a comma delimited list of:
  9. # bright (or bold), dim, underscore, blink, reverse, hidden, or italics.
  10.  
  11.  
  12. #Keybindings
  13.  
  14.  
  15. # Bind a key to a command. See the manpages for more details.
  16. #bind key command
  17.  
  18. # Sends the prefix key to the window as if it were pressed. If multiple prefix
  19. # keys are configured, only the first one is sent. See the prefix option.
  20. #send-prefix key
  21.  
  22. # Unbinds a command bound to a key. See the manpages for more details.
  23. #unbind key
  24.  
  25.  
  26. #Server Options
  27.  
  28.  
  29. # If on (the default), the client is detached when the session it is attached to
  30. # is destroyed. If off, the client is switched to the most recently active of
  31. # the remaining sessions.
  32. #set -s detach-on-destroy [on | off]
  33.  
  34. # Set the time in milliseconds for which tmux waits after an escape is input to
  35. # determine if it is part of a function or meta key sequences. The default is
  36. # 500 milliseconds.
  37. #set -s escape-time time
  38.  
  39. # Enable or disable the display of various informational messages (see also the
  40. # -q command line flag).
  41. #set -s quiet [on | off]
  42.  
  43.  
  44. #Session Options
  45.  
  46.  
  47. # Set the base index from which an unused index should be searched when a new
  48. # window is created. The default is zero.
  49. #set -g base-index index
  50.  
  51. # Set action on window bell. any means a bell in any window linked to a session
  52. # causes a bell in the current window of that session, none means all bells are
  53. # ignored and current means only bell in windows other than the current window
  54. # are ignored.
  55. #set -g bell-action [any | none | current]
  56.  
  57. # Set the number of buffers kept for each session; as new buffers are added to
  58. # the top of the stack, old ones are removed from the bottom if necessary to
  59. # maintain this maximum length.
  60. #set -g buffer-limit number
  61.  
  62. # Set the command used for new windows (if not specified when the window is
  63. # created) to shell-command, which may be any sh(1) command. The default is an
  64. # empty string, which instructs tmux to create a login shell using the value of
  65. # the default-shell option.
  66. #set -g default-command shell-command
  67.  
  68. # Specify the default shell. This is used as the login shell for new windows
  69. # when the default-command option is set to empty, and must be the full path of
  70. # the executable. When started tmux tries to set a default value from the first
  71. # suitable of the SHELL environment variable, the shell returned by getpwuid(3),
  72. # or /bin/sh. This option should be configured when tmux is used as a login
  73. # shell.
  74. #set -g default-shell path
  75.  
  76. # Set the default working directory for processes created from keys, or
  77. # interactively from the prompt. The default is empty, which means to use the
  78. # working directory of the shell from which the server was started if it is
  79. # available or the user's home if not.
  80. #set -g default-path path
  81.  
  82. # Set the default terminal for new windows created in this session - the default
  83. # value of the TERM environment variable. For tmux to work correctly, this must
  84. # be set to 'screen' or a derivative of it.
  85. #set -g default-terminal screen
  86.  
  87. # Set the colour (see 'colour' under 'General Notes') used by the
  88. # display-panes command to show the indicator for the active pane.
  89. #set -g display-panes-active-colour colour
  90.  
  91. # Set the colour used by the display-panes command to show the indicators for
  92. # inactive panes.
  93. #set -g display-panes-colour colour
  94.  
  95. # Set the time in milliseconds for which the indicators shown by the
  96. # display-panes command appear.
  97. #set -g display-panes-time time
  98.  
  99. # Set the amount of time for which status line messages and other on-screen
  100. # indicators are displayed. time is in milliseconds.
  101. #set -g display-time time
  102.  
  103. # Set the maximum number of lines held in window history. This setting applies
  104. # only to new windows - existing window histories are not resized and retain the
  105. # limit at the point they were created.
  106. #set -g history-limit lines
  107.  
  108. # Lock the session (like the lock-session command) after number seconds of
  109. # inactivity, or the entire server (all sessions) if the lock-server option is
  110. # set. The default is not to lock (set to 0).
  111. #set -g lock-after-time number
  112.  
  113. # Command to run when locking each client. The default is to run lock(1) with
  114. # -np.
  115. #set -g lock-command shell-command
  116.  
  117. # If this option is on (the default), instead of each session locking
  118. # individually as each has been idle for lock-after-time, the entire server will
  119. # lock after all sessions would have locked. This has no effect as a session
  120. # option; it must be set as a global option.
  121. #set -g lock-server [on | off]
  122.  
  123. # Set status line message attributes (see 'attributes' under 'General Notes').
  124. #set -g message-attr attributes
  125.  
  126. # Set status line message background colour.
  127. #set -g message-bg colour
  128.  
  129. # Set status line message foreground colour.
  130. #set -g message-fg colour
  131.  
  132. # Set the number of error or information messages to save in the message log for
  133. # each client. The default is 20.
  134. #set -g message-limit number
  135.  
  136. # If on, tmux captures the mouse and when a window is split into multiple panes
  137. # the mouse may be used to select the current pane. The mouse click is also
  138. # passed through to the application as normal.
  139. #set -g mouse-select-pane [on | off]
  140.  
  141. # Set the pane border colour for panes aside from the active pane.
  142. #set -g pane-border-fg colour
  143. # May not work or be unnecessary, see pane-border-bg
  144.  
  145. # Set the pane border colour for panes aside from the active pane.
  146. #set -g pane-border-bg colour
  147.  
  148. # Set the pane border colour for the currently active pane.
  149. #set -g pane-active-border-fg colour
  150. # May not work or be unnecessary, see pane-active-border-bg
  151.  
  152. # Set the pane border colour for the currently active pane.
  153. #set -g pane-active-border-bg colour
  154.  
  155. # Set the keys accepted as a prefix key. keys is a comma-separated list of key
  156. # names, each of which individually behave as the prefix key.
  157. #set -g prefix keys
  158.  
  159. # Allow multiple commands to be entered without pressing the prefix-key again in
  160. # the specified time milliseconds (the default is 500). Whether a key repeats
  161. # may be set when it is bound using the -r flag to bind-key. Repeat is enabled
  162. # for the default keys bound to the resize-pane command.
  163. #set -g repeat-time time
  164.  
  165. # Set the remain-on-exit window option for any windows first created in this
  166. # session. When this option is true, windows in which the running program has
  167. # exited do not close, instead remaining open but inactivate. Use the
  168. # respawn-window command to reactivate such a window, or the kill-window command
  169. # to destroy it.
  170. #set -g set-remain-on-exit [on | off]
  171.  
  172. # Attempt to set the window title using the \e]2;...\007 xterm code if the
  173. # terminal appears to be an xterm. This option is off by default. Note that
  174. # elinks will only attempt to set the window title if the STY environment
  175. # variable is set.
  176. #set -g set-titles [on | off]
  177.  
  178. # String used to set the window title if set-titles is on. Character sequences
  179. # are replaced as for the status-left option.
  180. #set -g set-titles-string string
  181.  
  182. # Show or hide the status line.
  183. #set -g status [on | off]
  184.  
  185. # Set status line attributes.
  186. #set -g status-attr attributes
  187.  
  188. # Set status line background colour.
  189. #set -g status-bg colour
  190.  
  191. # Set status line foreground colour.
  192. #set -g status-fg colour
  193.  
  194. # Update the status bar every interval seconds. By default, updates will occur
  195. # every 15 seconds. A setting of zero disables redrawing at interval.
  196. #set -g status-interval interval
  197.  
  198. # Set the position of the window list component of the status line: left, centre
  199. # or right justified.
  200. #set -g status-justify [left | centre | right]
  201.  
  202. # Use vi or emacs-style key bindings in the status line, for example at the
  203. # command prompt. Defaults to emacs.
  204. #set -g status-keys [vi | emacs]
  205.  
  206. # Display string to the left of the status bar. string will be passed through
  207. # strftime(3) before being used. By default, the session name is shown. string
  208. # may contain any of the following special character sequences:
  209. #
  210. # Character pair Replaced with
  211. # #(shell-command) First line of the command's output
  212. # #[attributes] Colour or attribute change
  213. # #H Hostname of local host
  214. # #F Current window flag
  215. # #I Current window index
  216. # #P Current pane index
  217. # #S Session name
  218. # #T Current window title
  219. # #W Current window name
  220. # ## A literal '#'
  221. #
  222. # The #(shell-command) form executes 'shell-command' and inserts the first line
  223. # of its output. Note that shell commands are only executed once at the
  224. # interval specified by the status-interval option: if the status line is
  225. # redrawn in the meantime, the previous result is used. Shell commands are
  226. # executed with the tmux global environment set (see the ENVIRONMENT section).
  227. #
  228. # The window title (#T) is the title set by the program running within the
  229. # window using the OSC title setting sequence, for example:
  230. #
  231. # $ printf '\033]2;My Title\033\\'
  232. #
  233. # When a window is first created, its title is the hostname.
  234. #
  235. # #[attributes] allows a comma-separated list of attributes to be specified,
  236. # these may be 'fg=colour' to set the foreground colour, 'bg=colour' to set the
  237. # background colour, the name of one of the attributes (see 'attributes' under
  238. # 'Session Options') to turn an attribute on, or an attribute prefixed with 'no'
  239. # to turn one off, for example nobright.
  240. # Examples are:
  241. #
  242. # #(sysctl vm.loadavg)
  243. # #[fg=yellow,bold]#(apm -l)%%#[default] [#S]
  244. #
  245. # Where appropriate, special character sequences may be prefixed with a number
  246. # to specify the maximum length, for example '#24T'.
  247. #
  248. # By default, UTF-8 in string is not interpreted, to enable UTF-8, use the
  249. # status-utf8 option.
  250. #set -g status-left string
  251.  
  252. # Set the attribute of the left part of the status line.
  253. #set -g status-left-attr attributes
  254.  
  255. # Set the foreground colour of the left part of the status line.
  256. #set -g status-left-fg colour
  257.  
  258. # Set the background colour of the left part of the status line.
  259. #set -g status-left-bg colour
  260.  
  261. # Set the maximum length of the left component of the status bar. The default
  262. # is 10.
  263. #set -g status-left-length length
  264.  
  265. # Display string to the right of the status bar. By default, the current window
  266. # title in double quotes, the date and the time are shown. As with status-left,
  267. # string will be passed to strftime(3), character pairs are replaced, and UTF-8
  268. # is dependent on the status-utf8 option.
  269. #set -g status-right string
  270.  
  271. # Set the attribute of the right part of the status line.
  272. #set -g status-right-attr attributes
  273.  
  274. # Set the foreground colour of the right part of the status line.
  275. #set -g status-right-fg colour
  276.  
  277. # Set the background colour of the right part of the status line.
  278. #set -g status-right-bg colour
  279.  
  280. # Set the maximum length of the right component of the status bar. The default
  281. # is 40.
  282. #set -g status-right-length length
  283.  
  284. # Instruct tmux to treat top-bit-set characters in the status-left and
  285. # status-right strings as UTF-8; notably, this is important for wide characters.
  286. # This option defaults to off.
  287. #set -g status-utf8 [on | off]
  288.  
  289. # Contains a list of entries which override terminal descriptions read using
  290. # terminfo(5). string is a comma-separated list of items each a colon-separated
  291. # string made up of a terminal type pattern (matched using fnmatch(3)) and a
  292. # set of name=value entries.
  293. #
  294. # For example, to set the 'clear' terminfo(5) entry to '\e[H\e[2J' for all
  295. # terminal types and the 'dch1' entry to '\e[P' for the 'rxvt' terminal type,
  296. # the option could be set to the string:
  297. #
  298. # "*:clear=\e[H\e[2J,rxvt:dch1=\e[P"
  299. #
  300. # The terminal entry value is passed through strunvis(3) before interpretation.
  301. # The default value forcibly corrects the 'colors' entry for terminals which
  302. # support 88 or 256 colours:
  303. #
  304. # "*88col*:colors=88,*256col*:colors=256"
  305. #set -g terminal-overrides string
  306.  
  307. # Set a space-separated string containing a list of environment variables to be
  308. # copied into the session environment when a new session is created or an
  309. # existing session is attached. Any variables that do not exist in the source
  310. # environment are set to be removed from the session environment (as if -r was
  311. # given to the set-environment command). The default is "DISPLAY WINDOWID
  312. # SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION".
  313. #set -g update-environment variables
  314.  
  315. # If on, display a status line message when activity occurs in a window for
  316. # which the monitor-activity window option is enabled.
  317. #set -g visual-activity [on | off]
  318.  
  319. # If this option is on, a message is shown on a bell instead of it being passed
  320. # through to the terminal (which normally makes a sound). Also see the
  321. # bell-action option.
  322. #set -g visual-bell [on | off]
  323.  
  324. # Like visual-activity, display a message when content is present in a window
  325. # for which the monitor-content window option is enabled.
  326. #set -g visual-content [on | off]
  327.  
  328.  
  329. #Window Options
  330.  
  331.  
  332. # Aggressively resize the chosen window. This means that tmux will resize the
  333. # window to the size of the smallest session for which it is the current window,
  334. # rather than the smallest session to which it is attached. The window may
  335. # resize when the current window is changed on another sessions; this option is
  336. # good for full-screen programs which support SIGWINCH and poor for interactive
  337. # programs such as shells.
  338. #setw -g aggressive-resize [on | off]
  339.  
  340. # This option configures whether programs running inside tmux may use the
  341. # terminal alternate screen feature, which allows the smcup and rmcup
  342. # terminfo(5) capabilities to be issued to preserve the existing window content
  343. # on start and restore it on exit.
  344. #setw -g alternate-screen [on | off]
  345.  
  346. # Control automatic window renaming. When this setting is enabled, tmux will
  347. # attempt - on supported platforms - to rename the window to reflect the command
  348. # currently running in it. This flag is automatically disabled for an individual
  349. # window when a name is specified at creation with new-window or new-session, or
  350. # later with rename-window.
  351. #setw -g automatic-rename [on | off]
  352.  
  353. # Set clock colour.
  354. #setw -g clock-mode-colour colour
  355.  
  356. # Set clock hour format.
  357. #setw -g clock-mode-style [12 | 24]
  358.  
  359. # Prevent tmux from resizing a window to greater than width or height. A value
  360. # of zero restores the default unlimited setting.
  361. #setw -g force-height height
  362. #setw -g force-width width
  363.  
  364. # Set the width or height of the main (left or top) pane in the main-horizontal
  365. # or main-vertical layouts.
  366. #setw -g main-pane-width width
  367. #setw -g main-pane-height height
  368.  
  369. # Set window modes attributes.
  370. #setw -g mode-attr attributes
  371.  
  372. # Set window modes background colour.
  373. #setw -g mode-bg colour
  374.  
  375. # Set window modes foreground colour.
  376. #setw -g mode-fg colour
  377.  
  378. # Use vi or emacs-style key bindings in copy and choice modes. Key bindings
  379. # default to emacs.
  380. #setw -g mode-keys [vi | emacs]
  381.  
  382. # Mouse state in modes. If on, the mouse may be used to copy a selection by
  383. # dragging in copy mode, or to select an option in choice mode.
  384. #setw -g mode-mouse [on | off]
  385.  
  386. # Monitor for activity in the window. Windows with activity are highlighted in
  387. # the status line.
  388. #setw -g monitor-activity [on | off]
  389.  
  390. # Monitor content in the window. When fnmatch(3) pattern match-string appears
  391. # in the window, it is highlighted in the status line.
  392. #setw -g monitor-content match-string
  393.  
  394. # A window with this flag set is not destroyed when the program running in it
  395. # exits. The window may be reactivated with the respawn-window command.
  396. #setw -g remain-on-exit [on | off]
  397.  
  398. # Duplicate input to any pane to all other panes in the same window (only for
  399. # panes that are not in any special mode).
  400. #setw -g synchronize-panes [on | off]
  401.  
  402. # Instructs tmux to expect UTF-8 sequences to appear in this window.
  403. #setw -g utf8 [on | off]
  404.  
  405. # Set status line attributes for a single window.
  406. #setw -g window-status-attr attributes
  407. # Don't think this will work from .tmux.conf, but haven't tried it.
  408.  
  409. # Set status line background colour for a single window.
  410. #setw -g window-status-bg colour
  411. # Don't think this will work from .tmux.conf, but haven't tried it.
  412.  
  413. # Set status line foreground colour for a single window.
  414. #setw -g window-status-fg colour
  415. # Don't think this will work from .tmux.conf, but haven't tried it.
  416.  
  417. # Set the format in which the window is displayed in the status line window
  418. # list. See the status-left option for details of special character sequences
  419. # available. The default is '#I:#W#F'.
  420. #setw -g window-status-format string
  421.  
  422. # Set status line attributes for windows which have an alert (bell, activity or
  423. # content).
  424. #setw -g window-status-alert-attr attributes
  425.  
  426. # Set status line background colour for windows with an alert.
  427. #setw -g window-status-alert-bg colour
  428.  
  429. # Set status line foreground colour for windows with an alert.
  430. #setw -g window-status-alert-fg colour
  431.  
  432. # Set status line attributes for the currently active window.
  433. #setw -g window-status-current-attr attributes
  434.  
  435. # Set status line background colour for the currently active window.
  436. #setw -g window-status-current-bg colour
  437.  
  438. # Set status line foreground colour for the currently active window.
  439. #setw -g window-status-current-fg colour
  440.  
  441. # Like window-status-format, but is the format used when the window is the
  442. # current window.
  443. #setw -g window-status-current-format string
  444.  
  445. # Sets the window's conception of what characters are considered word
  446. # separators, for the purposes of the next and previous word commands in copy
  447. # mode. The default is ' -_@'.
  448. #setw -g word-separators string
  449.  
  450. # If this option is set, tmux will generate xterm(1) -style function key
  451. # sequences; these have a number included to indicate modifiers such as Shift,
  452. # Alt or Ctrl. The default is off.
  453. #setw -g xterm-keys [on | off]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement