Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set -g default-shell $SHELL
- set -g default-command "reattach-to-user-namespace -l ${SHELL}"
- # simplify our tmux prefix
- unbind C-b
- set -g prefix C-s
- bind-key -r C-s send-prefix
- # allow navigating panes with vim keybindings
- bind-key -n C-h select-pane -L
- bind-key -n C-j select-pane -D
- bind-key -n C-k select-pane -U
- bind-key -n C-l select-pane -R
- # simplify reloading .tmux.conf
- bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
- # set some tmux colors
- set -g default-terminal "screen-256color"
- set-option -g status-bg '#1c489b'
- set-option -g status-fg '#ffffff'
- set-option -g pane-border-style "fg=#1c489b"
- set-option -g pane-active-border-style "fg=#1c489b"
- set-option -g status-left '#[default] Windows: '
- # copy/paste config
- set -g mouse on
- setw -g mode-keys vi
- bind-key -Tcopy-mode-vi 'v' send -X begin-selection
- bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
- unbind -Tcopy-mode-vi 'Enter'
- bind-key -Tcopy-mode-vi 'Enter' send -X copy-pipe "reattach-to-user-namespace pbcopy"
- bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
- # open new panes in the current working directory
- bind-key c new-window -c "#{pane_current_path}"
- bind-key % split-window -h -c "#{pane_current_path}"
- bind-key '"' split-window -v -c "#{pane_current_path}"
Add Comment
Please, Sign In to add comment