Last active
June 20, 2019 01:04
-
-
Save jyukutyo/3494243 to your computer and use it in GitHub Desktop.
tmuxの設定ファイル
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-window-option -g mode-mouse on | |
# ペインをマウスクリックして選択する | |
set-option -g mouse-select-pane on | |
# ウィンドウをマウスクリックして選択する | |
set-option -g mouse-select-window on | |
# マウスでペインをリサイズする | |
set-option -g mouse-resize-pane on | |
# Prefix | |
set-option -g prefix C-z | |
unbind-key C-b | |
bind-key C-z send-prefix | |
# 日本語環境 | |
setw -g utf8 on | |
set -g status-utf8 on | |
# Linux | |
# bind-key C-v run "tmux set-buffer \"$(xclip -o -selection clipboard)\"; tmux paste-buffer" | |
# bind-key C-c run "tmux show-buffer | xclip -i -selection clipboard" | |
# set-option -g default-shell /bin/bash | |
# set-option -g default-command /bin/bash | |
# Mac | |
bind-key C-v run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer" | |
bind-key C-c run "tmux show-buffer | pbcopy" | |
# Status bar | |
set -g status-interval 10 | |
set -g status-bg colour100 | |
setw -g window-status-current-fg black | |
setw -g window-status-current-bg white | |
# pane-active-border | |
set -g pane-active-border-fg white | |
# KeyBindings | |
# pane | |
unbind 1 | |
bind 1 break-pane | |
bind 2 split-window -v | |
bind 3 split-window -h | |
bind C-k kill-pane | |
bind k kill-window | |
unbind & | |
# C-z C-rでコピーモードにする | |
bind -r ^[ copy-mode | |
bind -r ^] paste-buffer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment