Tmux 에 익숙해지기 위해 정리한것들
# Ubuntu
sudo apt install tmux
# mac OS
brew install tmux
# 42서울 mac OS
rm -rf $HOME/.brew && git clone --depth=1 <https://github.com/Homebrew/brew> $HOME/.brew && echo 'export PATH=$HOME/.brew/bin:$PATH' >> $HOME/.zshrc && source $HOME/.zshrc && brew update
brew install tmux
pre + :
로 내장 커맨드 가능pre + r
로도 가능git clone <https://github.com/tmux-plugins/tpm> ~/.tmux/plugins/tpm
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# 제일 밑에 추가
run '~/.tmux/plugins/tpm/tpm'
pre + I
(대문자 I)#set mouse off/on - if off, forces you to use keyboard with prefix-[
set -g mouse on
#256 colours
set -g default-terminal "xterm-256color"
# start with window 1 (instead of 0)
set -g base-index 1
# start with pane 1
set -g pane-base-index 1
# use vi mode
setw -g mode-keys vi
set -g status-keys vi
# scrollback buffer size increase
set -g history-limit 100000
# disable window name auto change
set -g allow-rename off
#Setting escape time delay to be smaller
#to make tmux more responsive to commands
set -s escape-time 0
set -g status-bg black
# Status line left side
set -g status-left-length 40
set -g status-left "#[fg=colour245]#W #[fg=colour245]#I"
# S : session name
# W : window name
# I : window index
# P : pane index
# Status line right side
set -g status-right "#[fg=colour245]%b %d #[fg=colour256] %R"
# Update the status bar every sixty seconds (for the time)
set -g status-interval 60
display-message "done"