diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-20 00:43:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-20 01:21:09 +1200 |
commit | 1ce0e2ad424bf38768094488774eff23b3871ccc (patch) | |
tree | b9d407b2fb7729456ce554d4d610a194447ad737 /bash/bash_profile.d/fortune.bash | |
parent | Use terser shell for executable installs (diff) | |
download | dotfiles-1ce0e2ad424bf38768094488774eff23b3871ccc.tar.gz dotfiles-1ce0e2ad424bf38768094488774eff23b3871ccc.zip |
Port all bash_profile.d scripts to POSIX sh
Also require flag files in ~/.welcome for displaying or not displaying
login stuff
Diffstat (limited to 'bash/bash_profile.d/fortune.bash')
-rw-r--r-- | bash/bash_profile.d/fortune.bash | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/bash/bash_profile.d/fortune.bash b/bash/bash_profile.d/fortune.bash deleted file mode 100644 index cc16ff05..00000000 --- a/bash/bash_profile.d/fortune.bash +++ /dev/null @@ -1,19 +0,0 @@ -# Only if shell is interactive -if [[ $- != *i* ]] ; then - return -fi - -# Only if fortune(6) available -if ! hash fortune 2>/dev/null ; then - return -fi - -# Print from subshell to keep namespace clean -( - if [[ -d $HOME/.local/share/games/fortunes ]] ; then - FORTUNE_PATH=${FORTUNE_PATH:-$HOME/.local/share/games/fortunes} - fi - printf '\n' - fortune -s "$FORTUNE_PATH" - printf '\n' -) |