Last active
October 11, 2017 07:12
-
-
Save irmowan/0c99ecdfdebf36b46d186d6a8f79ed12 to your computer and use it in GitHub Desktop.
configurations
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 zsh as shell | |
set-option -g default-shell /usr/bin/zsh | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind -r L resize-pane -L 10 # 向左扩展 | |
bind -r R resize-pane -R 10 # 向右扩展 | |
bind -r K resize-pane -U 5 # 向上扩展 | |
bind -r J resize-pane -D 5 # 向下扩展 | |
# Split window | |
# bind | split-window -h | |
# bind - split-window -v | |
# cd to current path when split | |
# bind '"' split-window -c '#{pane_current_path}' | |
# bind '%' split-window -h -c '#{pane_current_path}' | |
# Reload config | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Vim mode | |
set-window-option -g mode-keys vi | |
# Clipboard | |
# bind C-c run " tmux save-buffer - | xclip -i -sel clipboard" | |
# bind C-v run " tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" | |
# History | |
set-option -g history-limit 50000 | |
bind k send-keys "clear"\; send-keys "Enter" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment