From c4866d8aa56a6c9f8e8952be57bff9b347ac4ac0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 10 Jun 2015 10:50:14 +1200 Subject: Rearrange newlines --- bash/bash_profile.d/fortune.bash | 1 + bash/bash_profile.d/remind.bash | 2 +- bash/bash_profile.d/verse.bash | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bash/bash_profile.d/fortune.bash b/bash/bash_profile.d/fortune.bash index deb2e79f..dd054192 100644 --- a/bash/bash_profile.d/fortune.bash +++ b/bash/bash_profile.d/fortune.bash @@ -4,5 +4,6 @@ if [[ $- == *i* ]] && hash fortune 2>/dev/null ; then ( FORTUNE_PATH=${FORTUNE_PATH:-$HOME/.local/share/games/fortunes} fi fortune -sn "${FORTUNE_MAXSIZE:-768}" "$FORTUNE_PATH" + printf '\n' ) ; fi diff --git a/bash/bash_profile.d/remind.bash b/bash/bash_profile.d/remind.bash index 50a3d8c8..7188c639 100644 --- a/bash/bash_profile.d/remind.bash +++ b/bash/bash_profile.d/remind.bash @@ -1,8 +1,8 @@ # If interactive and rem(1) installed, run it if [[ $- == *i* ]] && hash rem 2>/dev/null ; then ( - printf '\n' while read -r reminder ; do printf '* %s\n' "$reminder" done < <(rem -hq) + printf '\n' ) ; fi diff --git a/bash/bash_profile.d/verse.bash b/bash/bash_profile.d/verse.bash index 5d2538dc..8999d840 100644 --- a/bash/bash_profile.d/verse.bash +++ b/bash/bash_profile.d/verse.bash @@ -8,7 +8,8 @@ if [[ $- == *i* ]] && hash verse 2>/dev/null ; then ( read -r lastversedate < "$versefile" fi if [[ "$date" > "$lastversedate" ]] ; then - printf '\n%s\n\n' "$(verse)" + verse + printf '\n' printf '%s\n' "$date" > "$versefile" fi ) ; fi -- cgit v1.2.3