Last active
May 7, 2020 15:39
-
-
Save h-otter/1c81f3d206182bcd8da8d6a6b78b1b53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- default shell -- | |
set-option -g default-shell /bin/zsh | |
set-option -g default-command /bin/zsh | |
# -- prefix -- | |
set -g prefix C-s | |
unbind C-b | |
# -- line max -- | |
set -g history-limit 50000 | |
# --delay -- | |
set -sg escape-time 1 | |
# -- mouse -- | |
set -g mouse on | |
# -- keybind -- | |
## vim | |
set-window-option -g mode-keys vi | |
## copy | |
bind Space copy-mode | |
bind p paste-buffer | |
bind P choose-buffer | |
bind > run "tmux save-buffer - | xclip -selection clipboard > /dev/null" | |
bind < run "xclip -selection clipboard -o | tmux load-buffer -" | |
## change pane | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
## change window | |
bind C-c new-window | |
bind C-p previous-window | |
bind C-n next-window | |
bind C-l list-window | |
## kill pane or window | |
bind C-k confirm-before -p "kill-pane? (y/n)" kill-pane | |
bind S set-window-option synchronize-panes | |
# -- design -- | |
set-option -g status-interval 1 | |
set-option -g status-style bg="colour238",fg="colour255" | |
set-option -g status-left-length 20 | |
set-option -g status-left "#[fg=colour255,bg=colour241]Session: #S #[default]" | |
set-option -g status-right-length 40 | |
set-option -g status-right '#[fg=colour255,bg=colour241] #h | %m/%d %H:%M:%S#[default]' | |
set-option -g pane-active-border-style fg=brightblue | |
set-window-option -g window-status-format "#I: #W" | |
set-window-option -g window-status-current-style bg="colour27",fg="colour255" | |
set-window-option -g window-status-current-format " #I: #W " |
good bye byobu
https://qiita.com/TsutomuNakamura/items/663b8e456768f29e37ed
tmux 3.0a on ubuntu 20.04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for byobu