19 lines
408 B
Plaintext
19 lines
408 B
Plaintext
tmux_omitted_dirs=(
|
|
$HOME
|
|
$(find $DIR_HOME_BOX -type d -maxdepth 1)
|
|
$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
|
|
|