dotfiles

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

commit b5409969bad9d34e6e9d9378ae82e8d57253f9e5
parent abf0c5b9e452e7ac18deedab0e3fbad0a56d6ddc
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun,  7 Jan 2018 10:02:27 -0500

Never print fortune over SSH above SHLVL 1

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 type -p fortune > /dev/null 2>&1 && [ "$SHLVL" -le 1 -o \( -n "$DISPLAY" -a "$SHLVL" -le 2 \) ] +if type -p fortune > /dev/null 2>&1 && [ "$SHLVL" -le 1 -o \( -n "$DISPLAY" -a -z "$SSH_TTY" -a "$SHLVL" -le 2 \) ] then [ -n $NEWLINE ] && echo; unset NEWLINE fortune