From aaf79c96caab9a3a54e07c7110ae3fbf9bb451e3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 23 Aug 2016 23:42:20 +1200 Subject: Abbreviation in fortune.sh --- sh/profile.d/fortune.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/profile.d/fortune.sh b/sh/profile.d/fortune.sh index a5894108..d7f1d202 100644 --- a/sh/profile.d/fortune.sh +++ b/sh/profile.d/fortune.sh @@ -16,9 +16,8 @@ command -v fortune >/dev/null 2>&1 || return # Print from subshell to keep namespace clean ( - if [ -d "$HOME"/.local/share/games/fortunes ] ; then + [ -d "$HOME"/.local/share/games/fortunes ] && : "${FORTUNE_PATH:="$HOME"/.local/share/games/fortunes}" - fi fortune -s "$FORTUNE_PATH" printf '\n' ) -- cgit v1.2.3