diff --git a/README.md b/README.md index 253b334..f09b666 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,18 @@ cp tmux/gitmux.conf $HOME/.config/ ## Configuration +### TERM name, true color and osc 52 copy + +You may need to modify the name of your `$TERM` in the "terminal-features" & "terminal-overrides" inside tmux.conf. + +Your terminal need features related to 256 or true colors and OSC 52 copy. + +### URxvt - Rxvt-unicode + +Urxvt is an old terminal but it is currently my favorite due to the amount of customizations available and it's performance. + +By default it can not perform OSC 52 or display some font icons. Please refer to my other repository [urxvtrc][urxvtrc_repo]. + ### SSH/Remote If you install this configuration on a remote system, you will need another prefix than on the local tmux (ctrl+x). @@ -140,6 +152,7 @@ sed -i -e 's/C-x/C-w/g' -e 's/Ctrl-x/Ctrl-w/g' $HOME/.config/tmux/tmux.conf [tmuxrc_repo]: https://git.tkapias.net/tkapias/tmuxrc [TMUX_repo]: https://github.com/tmux/tmux [bashrc_repo]: https://git.tkapias.net/tkapias/bashrc +[urxvtrc_repo]: https://git.tkapias.net/tkapias/urxvtrc [RUNCOM]: https://en.wikipedia.org/wiki/RUNCOM [libevent_repo]: https://github.com/libevent/libevent/releases/latest [ncurses_repo]: https://invisible-mirror.net/archives/ncurses/ diff --git a/tmux.conf b/tmux.conf index 41c4069..a6df90e 100644 --- a/tmux.conf +++ b/tmux.conf @@ -132,17 +132,18 @@ set -g display-time 4000 # Use mouse to switch windows, adjust panes, etc... set -g mouse off -# True color support -set -g default-terminal tmux-256color -set-option -ga terminal-overrides ',*-256colo*:Tc' - # Delay after escape key is passed into the program set -s escape-time 0 # Use vi styled keys for scrolling & copying set-window-option -g mode-keys vi +# True color support +set -g default-terminal tmux-256color +set-option -ga terminal-overrides ',rxvt-unicode-256color:Ms=\E]52;%p1%s;%p2%s\007' + # set-clipboard for copying with OSC 52 +# to make it work through tmux and ssh you need to use X11Forwarding (default) and "sudo apt install xauth" set -g allow-passthrough on set -s set-clipboard on set -as terminal-features ',rxvt-unicode-256color:clipboard'