Simplify tmux-session-hydrate logic; update tmux key binds
This commit is contained in:
18
src_files/.config/tmux/.tmux-session-hydrate-default
Normal file
18
src_files/.config/tmux/.tmux-session-hydrate-default
Normal file
@@ -0,0 +1,18 @@
|
||||
tmux_omitted_dirs=(
|
||||
$HOME
|
||||
$DIR_HOME_BOX
|
||||
$DIR_DEV
|
||||
$DIR_GIT_PROJECTS
|
||||
)
|
||||
|
||||
[[ ! ${tmux_omitted_dirs[(re)$(pwd)]} ]] && {
|
||||
tmux new-window -d -n $EDITOR
|
||||
tmux send-keys -t :$EDITOR "$EDITOR ." c-M
|
||||
tmux new-window -d -n debug
|
||||
tmux new-window -d -n run
|
||||
tmux rename-window cmd
|
||||
tmux send-keys -t :cmd "clear; [[ -d .git ]] && git status" c-M
|
||||
}
|
||||
|
||||
clear
|
||||
|
Reference in New Issue
Block a user