Files
dotfiles-and-setup/src_files/.config/tmux/.tmux-session-hydrate-default

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 daa
tmux new-window -d -n procs
tmux rename-window cmd
tmux send-keys -t :cmd "clear; [[ -d .git ]] && git status" c-M
}
clear