mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
don't show MOTD twice on tmux startup
This commit is contained in:
parent
723172bdf5
commit
5dfb4abf58
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue