nix/.tmux.conf

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-01-02 02:19:12 +00:00
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set-option -g default-shell /Users/evanreichard/.nix-profile/bin/bash
2019-05-29 18:19:30 +00:00
set-option -g prefix C-t
set-option -g renumber-windows on
2021-01-02 02:19:12 +00:00
# Open new windows / tabs in same dir
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
2019-05-29 18:19:30 +00:00
# Copy-paste integration
set-option -g default-command "reattach-to-user-namespace -l bash"
# 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"
# Bind ']' to use pbpaste
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
# Powerline
2021-01-02 02:19:12 +00:00
source $HOME/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
2019-05-29 18:19:30 +00:00
set -g default-terminal "screen-256color"
2021-01-02 02:19:12 +00:00
run -b '~/.tmux/plugins/tpm/tpm'