22 lines
456 B
Plaintext
22 lines
456 B
Plaintext
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
|