#!/bin/bash


# Try to get the system wezterm, if any.
p=/Applications/WezTerm.app/Contents/MacOS

if [ -d "$p" ]
then
	PATH="$PATH":"$p"
	export PATH
fi

# This only worked for the first tab.
# wezterm start "$SHELL"

# Wez suggested this: https://github.com/wez/wezterm/issues/2812
# wezterm --config "default_prog={'$SHELL'}" start --always-new-process
# Old wezterm needed it.  New wezterm (as of approximately 2023-03-25 or slightly before) starts two
# windows instead of the desired one.
# So now this seems to work as desired.
wezterm --config "default_prog={'$SHELL'}"