if [[ "$(tty)" =~ "tty3" ]] || [[ "$(tty)" =~ "pts" ]]; then
  if [[ -z "$TMUX" ]]; then
    tmux attach-session -t default || tmux new-session -s default
    exit
  fi
fi

[ -r "$HOME/.bash_colors" ] && source "$HOME/.bash_colors"
[ -r "$HOME/.bash_aux" ] && source "$HOME/.bash_aux"

[ -d "/srv/techlit-void" ] && cd "/srv/techlit-void"

#
# Print help every time
#
lsblk
say "
  Welcome to the TechLit $TL_ROLE system ($(cat "/etc/tl-recovery-version"))

Hints:
  $c#$y use $(g lsblk) to list block devices
  $c#$y use $(g nmtui) to setup WiFi
  $c#$y use $(g C-b ?) to multitask

Example Commands:

  Partition hard drive and provision a techlit-system (one-time per machine)
	$(c $) $(g tl-hw-prepare)  $(c /dev/sdx)  $(c hostname)($(c tl-xxx))

  Update & migrate TechLit OS (every machine for every update)
	$(c $) $(g tl-hw-update-desktop)  $(c /dev/sdx)

  Others
	pull/push components
	$(c $) $(g tl-comp-*)

	Manipulate Desktop blob components
	$(c $) $(g tl-img-*)
"
