aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/welcome.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-06-23 22:39:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-06-23 22:39:42 +1200
commit60333f9959de4dd70c8a1cc153a5de7ba4f1f65f (patch)
tree6707da2fb917c210a0edd047f53868fb280ec8e3 /sh/profile.d/welcome.sh
parent5f3774db3149e988641140264b185461b519d0fa (diff)
downloaddotfiles-60333f9959de4dd70c8a1cc153a5de7ba4f1f65f.tar.gz
dotfiles-60333f9959de4dd70c8a1cc153a5de7ba4f1f65f.zip
Simplify welcome.sh feature test
Diffstat (limited to 'sh/profile.d/welcome.sh')
-rw-r--r--sh/profile.d/welcome.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/sh/profile.d/welcome.sh b/sh/profile.d/welcome.sh
index d1a6b52d..345fd598 100644
--- a/sh/profile.d/welcome.sh
+++ b/sh/profile.d/welcome.sh
@@ -14,8 +14,7 @@ esac
(
# Temporary helper function
welcome() {
- [ -e "${XDG_CONFIG_HOME:-"$HOME"/.config}"/welcome/"$1" ] || return
- command -v "$1" >/dev/null 2>&1 || return
+ test -e "${XDG_CONFIG_HOME:-"$HOME"/.config}"/welcome/"$1"
}
# Show a fortune