set -g default-terminal 'screen-256color'
set -ga terminal-overrides ',xterm-256color:Tc'
Where ‘xterm-256color’ should be whatever your $PATH is outside of tmux.
set termguicolors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
This will tell vim the escape codes. It’s explained in :h xterm-true-color
.
tmux-256color|screen with 256 colors and italic,
sitm=\E[3m, ritm=\E[23m,
use=screen-256color,
tic tmux-256color.terminfo
set -g default-terminal "tmux-256color"
in .tmux.conf
src$ tmux new -s custom_name -c ~/custom/directory
:set status off
List all sessions:
tmux ls
Attach to a session:
tmux a -t old_session
Create new session:
tmux new -s session_name
Switch to previous session:
ctrl-b )
Switch to next session:
ctrl-b (
Detach the session:
:detach
Kill a specific session:
tmux kill-session -t old_session
Kill all tmux open sessions:
:kill-server
Kill all _other_sessions:
tmux kill-session -a