Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unbind-key C-b
- set -g prefix C-a
- bind C-a send-prefix
- #base setting
- set-option -g mouse on
- setw -g mode-keys vi
- set-option -g allow-rename off
- set -g base-index 1
- setw -g pane-base-index 1
- set -g renumber-windows on
- bind r source-file ~/.tmux.conf \; display "Config Reloading..."
- bind e neww -n tmux-config "\${EDITOR:-vim} ~/.tmux.conf"
- #rename window
- #set -wg allow-rename on
- #set -wg automatic-rename on
- # shell下的Ctrl+a切换到行首在此配置下失效,此处设置之后Ctrl+a再按a即可切换至shell行首
- bind-key C-a last-window # 方便切换,个人习惯
- bind-key a send-prefix
- #up
- bind-key k select-pane -U
- #down
- bind-key j select-pane -D
- #left
- bind-key h select-pane -L
- #right
- bind-key l select-pane -R
- # split window
- # vertical split (prefix -)
- unbind '"'
- bind - splitw -v -c "#{pane_current_path}"
- # horizontal split (prefix |)
- unbind %
- bind \ splitw -h -c "#{pane_current_path}"
- #bind copy to system clip
- bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'
- # 状态栏
- # 颜色
- #set -g status-bg '#0087ff'
- #set -g status-fg '#ffffd7'
- #set -g message-style "bg=#007aac, fg=#ffffd7" # tomorrow night blue, base3
- #set -g status-style "bg=#0087ff, fg=#ffffd7" # tomorrow night blue, base3
- # 对齐方式
- #set-option -g status-justify centre
- # 左下角
- #set-option -g status-left '#[bg=#0087ff,fg=#ffffd7] ❐#S '
- #set-option -g status-left-length 20
- # 窗口列表
- #set -g window-status-format ' #I:#W '
- #set -g window-status-current-format ' #I:#W🛠 '
- #setw -g window-status-current-bg red
- # 右下角
- #set -g status-right "#{?client_prefix, ⌨ , } #[bg=#0087ff] #(whoami)@#h #[bg=red] %Y-%m-%d %H:%M "
- run-shell ~/.tmux/tmux-resurrect/resurrect.tmux
- run-shell ~/.tmux/tmux-continuum/continuum.tmux
- set -g @continuum-save-interval '60'
- #theme-pack
- source-file "${HOME}/.tmux-themepack/powerline/default/magenta.tmuxtheme"
Add Comment
Please, Sign In to add comment