don't show MOTD twice on tmux startup

This commit is contained in:
Tobias Powalowski 2023-07-29 10:49:49 +02:00
parent 723172bdf5
commit 5dfb4abf58

View file

@ -22,7 +22,7 @@ if command -v nvim >/dev/null; then
alias edit='nvim'
fi
# show MOTD on ttyd login
if [[ -z "${TTY}" && -z "${SSH_TTY}" ]]; then
if [[ -z "${TTY}" && -z "${SSH_TTY}" && -z "${TMUX}" ]]; then
[[ "${SHLVL}" == "2" ]] && cat /etc/motd
fi
# run remote-login.sh on ssh connection