dotfiles

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

commit 11a10a9cbbed843d2ee697cd65066e1fe54e69a1
parent 5ae80bb659706e928e18f07a554c9d9fcf1cfa17
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 19 Jan 2018 08:16:21 -0500

shrc: Fix SHLVL detection

Diffstat:
M.shrc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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