Refactor/reorg various files and references
This commit is contained in:
21
src_files/.local/scripts/.tmux-session-hydrate-default
Normal file
21
src_files/.local/scripts/.tmux-session-hydrate-default
Normal file
@ -0,0 +1,21 @@
|
||||
local omitted_dirs=(
|
||||
$HOME
|
||||
$DIR_HOME_BOX
|
||||
$DIR_DEV
|
||||
$DIR_DEV/git
|
||||
)
|
||||
[[ ! ${omitted_dirs[(re)$(pwd)]} ]] &&
|
||||
tmux new-window -d -n cmd &&
|
||||
tmux rename-window $EDITOR &&
|
||||
$EDITOR .
|
||||
|
||||
clear
|
||||
|
||||
## example template for custom override
|
||||
# tmux new-window -d -n cmd
|
||||
# tmux send-keys -t :cmd "echo 'in cmd'" c-M
|
||||
# tmux new-window -d -n another
|
||||
# tmux send-keys -t :another "echo 'in another'" c-M
|
||||
# tmux rename-window $EDITOR
|
||||
# $EDITOR .
|
||||
# clear
|
Reference in New Issue
Block a user