mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-27 03:05:39 +01:00
54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
# option
|
|
set-option -g status-keys vi
|
|
set-option -g status-utf8 on
|
|
set-option -g default-terminal 'screen-256color'
|
|
set-option -g default-shell '/bin/zsh'
|
|
|
|
set-option -g status-fg magenta
|
|
set-option -g status-bg default
|
|
set-option -g status-left-length 20
|
|
set-option -g status-left ' #[fg=green]#(whoami)#[default]@#[fg=cyan]#h#[default]'
|
|
set-option -g status-right "#[fg=yellow]#(date +'%a %m/%d %H:%M') "
|
|
|
|
set-option -g pane-border-bg white
|
|
|
|
# window-option
|
|
set-window-option -g mode-keys vi
|
|
set-window-option -g utf8 on
|
|
set-window-option -g monitor-activity on
|
|
set-window-option -g monitor-content '%alert%'
|
|
set-window-option -g window-status-content-attr reverse
|
|
set-window-option -g window-status-content-fg red
|
|
set-window-option -g window-status-content-bg default
|
|
|
|
set-window-option -g window-status-current-attr bright
|
|
set-window-option -g window-status-current-fg yellow
|
|
set-window-option -g window-status-current-bg default
|
|
set-window-option -g window-status-format '#I:#W[#P]#F'
|
|
set-window-option -g window-status-current-format '#I:#W[#P]#F'
|
|
|
|
set-option -g pane-active-border-bg green
|
|
|
|
# bind key
|
|
bind-key -n C-e command-prompt
|
|
|
|
unbind-key %
|
|
bind-key | split-window -h
|
|
bind-key - split-window -v
|
|
|
|
bind-key -n C-w choose-window
|
|
|
|
bind-key h select-pane -L
|
|
bind-key j select-pane -D
|
|
bind-key k select-pane -U
|
|
unbind-key l
|
|
bind-key l select-pane -R
|
|
|
|
bind-key -n C-o last-window
|
|
|
|
bind-key -n M-o run-shell "tmux swap-pane -U; tmux last-pane "
|
|
|
|
bind-key [ copy -u
|
|
bind-key -n C-] paste
|
|
|
|
bind-key -t vi-copy Y copy-line
|