linux_wiki:tmux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:tmux [2016/03/18 23:24]
billdozor [Tmux]
linux_wiki:tmux [2018/03/07 09:17]
billdozor [Tmux Config File]
Line 129: Line 129:
 Ctrl+b ESC+1 Ctrl+b ESC+1
 </code> </code>
 +
 ---- ----
  
Line 185: Line 186:
 # Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right # Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
 set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC" set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
 +
 +# Set default shell
 +set-option -g default-shell /bin/zsh
 +
 +# Mouse wheel scrolling for individual panes (newer versions of tmux; ie Fedora 27)
 +set -g mouse on
 +bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
 +
 +# Mouse wheel scrolling for individual panes (older versions of tmux; ie CentOS 7)
 +set -g mode-mouse on
 </code> </code>
 +  * **Notes:**
 +    * With certain mouse options in tmux, the ability to highlight text as normal for a copy/paste operation goes away.
 +    * To copy/paste
 +      * **hold shift**, select text, copy
 +      * **hold shift**, right click, paste (or middle click)
  
 ---- ----
  • linux_wiki/tmux.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)