From b83fe7d6b69cb0a44a06778a90afa2a70525946f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 11 Jun 2015 21:21:50 +1200 Subject: Move first newline back into fortune --- bash/bash_profile | 3 +-- 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 -- cgit v1.2.3