--- tags: Linux --- tmux === [TOC] # [Github](https://github.com/tmux/tmux) # Commands Outside of tmux - new session `tmux new -s <name>` - attach session `tmux a -t <name>` - kill server `tmux kill-server` - reorder session `tmux rename-session -t 0 zzz` # Commands Inside of tmux - rename session `<prefix> + $` - new session `<prefix> :new -s <name>` - source `~/.tmux.conf` `<prefix> :source-file ~/.tmux.conf` - move window `<prefix> :move-window -t <idx>` - change window order `<prefix> :swap-window -s <source_num> -t <target_num>` - install tmux plugin `git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm` Add `set -g @plugin 'tmux-plugins/<plugin_name>'` to `~/.tmux.conf` `<prefix>+I` # Install - tmux-resurrect `prefix + Ctrl-s` - save `prefix + Ctrl-r` - restore # Debug ## Enter tmux will reset font under WSL (Windows Subsystem for Linux) * Solution: [ref](https://github.com/microsoft/WSL/issues/3988#issuecomment-587328805) 1. Open regedit. 1. Find something like this. `HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2019.522.0_x64__79rhkp1fndgsc_ubuntu1804.exe` 1. Add CodePage (Type: DWORD, Value: 0x01b5). ## Vim color problem * Solution: [ref](https://unix.stackexchange.com/a/355391/351079) - `tmux -2 a -t session`