export PATH="$PATH:/usr/local/bin" menu() { if [ -x /usr/local/bin/bee-tui ]; then /usr/local/bin/bee-tui "$@" else echo "bee-tui is not installed" return 1 fi } # Auto-open TUI on local tty1 after boot. # Exiting TUI returns to this shell (console prompt). if [ -z "${BEE_TUI_AUTO_LAUNCHED:-}" ] \ && [ -z "${SSH_CONNECTION:-}" ] \ && [ -z "${SSH_TTY:-}" ] \ && [ "$(tty 2>/dev/null)" = "/dev/tty1" ] \ && [ -x /usr/local/bin/bee-tui ]; then export BEE_TUI_AUTO_LAUNCHED=1 /usr/local/bin/bee-tui fi