tmux, open new pane in same dir

master
Dustin Swan 10 years ago
parent 6fc315fd0d
commit a7fbe33488

@ -1,5 +1,5 @@
# UGH # UGH
# set-option -g default-command "reattach-to-user-namespace -l zsh" set-option -g default-command "reattach-to-user-namespace -l zsh"
# Set the prefix to ^A # Set the prefix to ^A
unbind C-b unbind C-b
@ -30,7 +30,7 @@ bind C-a last-window
set-window-option -g mode-keys vi # vi key set-window-option -g mode-keys vi # vi key
set-option -g status-keys vi set-option -g status-keys vi
# Terminal Titles¬ # Terminal Titles
set -g set-titles on set -g set-titles on
set -g set-titles-string "#H (#S)" set -g set-titles-string "#H (#S)"
@ -56,3 +56,8 @@ bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlvie
# Escape delay # Escape delay
set -s escape-time 0 set -s escape-time 0
# Open new windows in current directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

Loading…
Cancel
Save