환경/tmux

tmux.conf

justbagmeg 2023. 1. 29. 08:49
set -g default-terminal "xterm"

# Set mouse
set -g mouse on

# reload .tmux.conf
bind r source-file ~/.tmux.conf

# Splitting terminals using | and -
unbind '"'
unbind %
bind - split-window -v
bind | split-window -h

# Set clipboard
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"

# Switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Switch windows
bind -n S-Left previous-window
bind -n S-Right next-window

# don't rename windows automatically
set-option -g allow-rename off

# Set display
set -g visual-activity off
set -g visual-bell off

setw -g clock-mode-colour colour5
setw -g mode-style 'fg=colour1 bg=colour18 bold'

set -g pane-border-style 'fg=colour6 bg=colour147'
set -g pane-active-border-style 'fg=colour9 bg=colour147'

set -g status-position bottom
set -g status-justify left
set -g status-style 'fg=colour153 bg=colour18'
set -g status-left ''
set -g status-right '#[fg=colour0,bg=colour248] %H:%M:%S '

set -g window-status-current-style 'fg=colour1 bg=colour19 bold'

색 번호