Update to load tmux panes in cwd and new windows in ~/

This commit is contained in:
Daniel McKnight 2025-06-13 08:56:02 -07:00
parent ecdc2c2b86
commit 4aaf3ee9fa
2 changed files with 5 additions and 5 deletions

View file

@ -22,8 +22,11 @@ bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied" bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
# Split # Split
bind S-down split-window -v bind S-down split-window -v -c "#{pane_current_path}"
bind S-right split-window -h bind S-right split-window -h -c "#{pane_current_path}"
# Override new window
bind c new-window -c "~/"
# Navigation # Navigation
bind -n C-Left select-pane -L bind -n C-Left select-pane -L

3
.zshrc
View file

@ -129,9 +129,6 @@ which helm 1> /dev/null && source <(helm completion zsh)
# doctl completion # doctl completion
which doctl 1> /dev/null && source <(doctl completion zsh) which doctl 1> /dev/null && source <(doctl completion zsh)
# Start in the home directory
cd ~
# Ensure zinit is installed # Ensure zinit is installed
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)" [ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"