From 1737015e459ce4a27b0086492fd357c0caf8bc95 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 1 Feb 2022 15:03:35 -0500 Subject: [PATCH] warn if neofetch not installed --- misc.aliases | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc.aliases b/misc.aliases index 840c169..f9692a2 100644 --- a/misc.aliases +++ b/misc.aliases @@ -8,6 +8,15 @@ alias jctlerr='journalctl -p 3 -xb' # Clear screen and show neofetch alias neo='clear && neofetch' +neo () +{ + if which neofetch >/dev/null; + then + clear && neofetch + else + echo "neofetch not found in PATH" + fi +} # Find Pids of process alias pidfind='ps auxww | grep'