diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 23:42:20 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 23:42:20 +1200 |
commit | aaf79c96caab9a3a54e07c7110ae3fbf9bb451e3 (patch) | |
tree | f3b5907e3f12ff8a7d8a3dc28171d175036b3e01 /sh/profile.d | |
parent | Set POSIX PS1 in a less silly way (diff) | |
download | dotfiles-aaf79c96caab9a3a54e07c7110ae3fbf9bb451e3.tar.gz dotfiles-aaf79c96caab9a3a54e07c7110ae3fbf9bb451e3.zip |
Abbreviation in fortune.sh
Diffstat (limited to 'sh/profile.d')
-rw-r--r-- | sh/profile.d/fortune.sh | 3 |
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' ) |