dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit e5c6ef9706bdc9bb27a8ae2c977ad7de8695c886
parent eb23778b15b3b1bda29b18152f2110d501614275
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 28 Jan 2018 16:21:49 -0500

shrc: Don't print motd outside X

Diffstat:
M.shrc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.shrc b/.shrc @@ -74,7 +74,7 @@ then alias vim=vi fi -if [ -r /etc/motd ] && [ -z "$SSH_TTY" ] +if [ -r /etc/motd -a -n "$DISPLAY" -a -z "$SSH_TTY" ] then [ $SHLVL -le 1 ] && cat /etc/motd fi