Created
November 29, 2018 03:06
-
-
Save kentatogashi/6128b2c680e241fba6f8a7b62c479320 to your computer and use it in GitHub Desktop.
tmuxのセットアップ(ubuntu)
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
# 事前に | |
# apt update && apt upgrade tmux | |
# apt install xsel xclip | |
set -g history-limit 10000 | |
# escape time | |
set -s escape-time 0 | |
set -g display-panes-time 3000 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set -g renumber-windows on | |
setw -g automatic-rename on | |
set -g prefix C-g | |
bind-key C-g send-prefix | |
setw -g mode-keys vi | |
#set-option -g default-command "exec reattach-to-user-namespace -l $SHELL" | |
#set-option -g default-command "reattach-to-user-namespace -l fish" | |
#bind-key -T copy-mode-vi v send-keys -X begin-selection | |
#bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
#bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
bind-key -n M-j select-pane -t :.+ | |
bind-key -n M-k select-pane -t :.- | |
bind-key -n M-Down select-pane -t :.+ | |
bind-key -n M-Up select-pane -t :.- | |
bind-key -n M-m select-pane -t :.1 | |
bind-key -n M-M swap-pane -d -t :.1 | |
bind-key -n M-J swap-pane -D | |
bind-key -n M-K swap-pane -U | |
bind-key -n M-L join-pane -t :+ | |
bind-key -n M-H join-pane -t :- | |
bind-key -n M-! join-pane -t :1 | |
bind-key -n M-'"' join-pane -t :2 | |
bind-key -n M-'#' join-pane -t :3 | |
bind-key -n M-'$' join-pane -t :4 | |
bind-key -n M-% join-pane -t :5 | |
bind-key -n M-& join-pane -t :6 | |
bind-key -n M-"'" join-pane -t :7 | |
bind-key -n M-( join-pane -t :8 | |
bind-key -n M-) join-pane -t :9 | |
bind-key -n M-',' resize-pane -L 1 | |
bind-key -n M-z resize-pane -D 1 | |
bind-key -n M-a resize-pane -U 1 | |
bind-key -n M-'.' resize-pane -R 1 | |
bind-key -n M-f resize-pane -Z | |
bind-key -n M-q display-panes | |
bind-key -n M-Right next-window | |
bind-key -n M-Left previous-window | |
bind-key -n M-l next-window | |
bind-key -n M-h previous-window | |
bind-key -n M-Space next-layout | |
bind-key -n M-1 select-window -t 1 | |
bind-key -n M-2 select-window -t 2 | |
bind-key -n M-3 select-window -t 3 | |
bind-key -n M-4 select-window -t 4 | |
bind-key -n M-5 select-window -t 5 | |
bind-key -n M-6 select-window -t 6 | |
bind-key -n M-7 select-window -t 7 | |
bind-key -n M-8 select-window -t 8 | |
bind-key -n M-9 select-window -t 9 | |
bind-key W command-prompt "select-window -t '%%'" | |
bind-key -n M-Enter new-window -c "#{pane_current_path}" | |
bind-key t choose-tree | |
bind-key C-c run 'tmux capture-pane -S -10240 -p > /tmp/tmux-capture.txt'\;\ | |
new-window "vim + /tmp/tmux-capture.txt" | |
bind-key -n F11 set status | |
bind | split-window -h | |
bind - split-window -v | |
bind e setw synchronize-panes on | |
bind E setw synchronize-panes off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment