diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-11 21:21:50 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-11 21:21:50 +1200 |
commit | b83fe7d6b69cb0a44a06778a90afa2a70525946f (patch) | |
tree | 3702a3591e855d41ea053c75d8a894a28e7063f6 | |
parent | Some completion for sudo(8) and sudoedit(8) (diff) | |
download | dotfiles-b83fe7d6b69cb0a44a06778a90afa2a70525946f.tar.gz dotfiles-b83fe7d6b69cb0a44a06778a90afa2a70525946f.zip |
Move first newline back into fortune
-rw-r--r-- | bash/bash_profile | 3 | ||||
-rw-r--r-- | bash/bash_profile.d/fortune.bash | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bash/bash_profile b/bash/bash_profile index 40f41c3d..05b15693 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -11,9 +11,8 @@ elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ return fi -# Load any supplementary scripts, print a newline first +# Load any supplementary scripts if [[ -d $HOME/.bash_profile.d ]] ; then - printf '\n' for bash_profile in "$HOME"/.bash_profile.d/*.bash ; do if [[ -e $bash_profile ]] ; then source "$bash_profile" diff --git a/bash/bash_profile.d/fortune.bash b/bash/bash_profile.d/fortune.bash index dd054192..89e24630 100644 --- a/bash/bash_profile.d/fortune.bash +++ b/bash/bash_profile.d/fortune.bash @@ -3,6 +3,7 @@ if [[ $- == *i* ]] && hash fortune 2>/dev/null ; then ( if [[ -d "$HOME"/.local/share/games/fortunes ]] ; then FORTUNE_PATH=${FORTUNE_PATH:-$HOME/.local/share/games/fortunes} fi + printf '\n' fortune -sn "${FORTUNE_MAXSIZE:-768}" "$FORTUNE_PATH" printf '\n' ) ; fi |