Commit 9e3314fc authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Skip reentrant lock of term-setup.sh if not in a TTY

parent c6eb0f0f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
export TERM

[ -n "${TTY-}" ] || TTY=$(tty)
[ "${TERM_SETUP_LOADED-}" = "${TTY}" ] && return
if tty -s; then
	[ "${TERM_SETUP_LOADED-}" = "${TTY:=$(tty)}" ] && return
	export TERM_SETUP_LOADED=${TTY}
fi

. ~/.shell/lib/colours.sh