Created
November 4, 2017 16:50
-
-
Save takahiro47/f470abcfa1e794f3bfb3e6d2b0e2344d 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
#------------------------------------- | |
# 基本設定 | |
#------------------------------------- | |
set-option -g status on | |
set-option -g status-interval 2 | |
set-option -g status-justify "left" | |
set-option -g status-left-length 60 | |
set-option -g status-right-length 90 | |
set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)" | |
set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)" | |
set -g status-bg colour235 | |
set-option -g status-left-length 100 | |
set-option -g status-right-length 120 | |
set-window-option -g window-status-current-format "#[fg=colour235, bg=colour27]⮀#[fg=colour255, bg=colour27] #I ⮁ #W #[fg=colour27, bg=colour235]⮀" | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# コピー, スクロール設定 | |
set -g mouse on | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" | |
#------------------------------------- | |
# ペイン間の移動 (Shift + 上下左右でペインを移動.※<Prefix>は不要) | |
# 行頭に"bind -n"をつけるとPrefixが不要になる。 | |
#------------------------------------- | |
bind -n S-left select-pane -L | |
bind -n S-down select-pane -D | |
bind -n S-up select-pane -U | |
bind -n S-right select-pane -R | |
# #------------------------------------- | |
# # tmux上で起動したvimのクリップボードをOS Xと共有する | |
# #------------------------------------- | |
# | |
# # Use vim keybindings in copy mode | |
# setw -g mode-keys vi | |
# | |
# # Setup 'v' to begin selection as in Vim | |
# bind-key -t vi-copy v begin-selection | |
# bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
# | |
# # Update default binding of `Enter` to also use copy-pipe | |
# unbind -t vi-copy Enter | |
# bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" | |
# | |
# set-option -g default-command "reattach-to-user-namespace -l bash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment