Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Configure your default shell, Zsh in my case.
- set -g default-shell $SHELL
- # Override the default command to use `reattach-to-user-namespace` for
- # everything.
- set -g default-command "reattach-to-user-namespace -l ${SHELL}"
- # Bind ']' to use pbbaste
- bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
- # Vim style navigation in copy mode
- set-window-option -g mode-keys vi
- bind-key -T copy-mode-vi 'v' send -X begin-selection
- bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
- # Enable mouse globally# Enable mouse globally
- set -g mouse on
- # New window with default path set to last path
- bind-key '"' split-window -c "#{pane_current_path}"
- bind-key % split-window -h -c "#{pane_current_path}"
- bind-key c new-window -c "#{pane_current_path}"
- # Toggle mouse on with ^B m
- bind-key m \
- set -g mouse on \;\
- display 'Mouse: ON'
- # Toggle mouse off with ^B M
- bind-key M \
- set -g mode off \;\
- display 'Mouse: OFF'
Add Comment
Please, Sign In to add comment