From 39a63ad8360b31f0795f3d17e8108cffb3aeace1 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 29 Nov 2021 08:25:13 -0600 Subject: [PATCH] Bash rc --- common/bash/rc | 2 +- common/bin/launch | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/bash/rc b/common/bash/rc index 5e059fb..58215a5 100644 --- a/common/bash/rc +++ b/common/bash/rc @@ -6,5 +6,5 @@ command -v fish >/dev/null 2>&1 && grep fish /etc/shells >/dev/null 2>&1 && { echo " You may want to run 'chsh' and set your shell to $(grep fish /etc/shells | head -n1)'." echo " Once that's done, simply run 'fish'." echo " You can also try fish temporarily by running 'fish'. No 'chsh' commitment required." - echo " If you're in bash for intentionally for some reason, then ignore this message." + echo " If you're in bash intentionally for some reason, then ignore this message." } diff --git a/common/bin/launch b/common/bin/launch index 3e1b1ee..daef507 100755 --- a/common/bin/launch +++ b/common/bin/launch @@ -13,5 +13,7 @@ app="$( grep "\S" | \ fzf )" +# if no app is selected, just exit +test -z "$app" && exit 1 echo "$app $(date +%s)" >> "$LAUNCHER_HISTORY_FILE" echo "$app"