box-setup/src_files/.local/bin/.tmux-session-hydrate

15 lines
198 B
Bash

#!/bin/zsh
local omitted_dirs=(
$HOME
$HOMEBOX
$DEVDIR
)
[[ ! ${omitted_dirs[(re)$(pwd)]} ]] &&
tmux new-window -d -n cmd &&
tmux rename-window $EDITOR &&
$EDITOR .
clear