aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d
diff options
context:
space:
mode:
Diffstat (limited to 'sh/profile.d')
-rw-r--r--sh/profile.d/fortune.sh3
1 files changed, 1 insertions, 2 deletions
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'
)