From 7b0c0e2674b2c9846e5e745c2e6a803783af8f43 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 19 Dec 2018 15:14:07 +0000 Subject: [PATCH] Makes CLS alias show neofetch if moonphase takes too long --- shells/aliases | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shells/aliases b/shells/aliases index 7e18d34b..963034cc 100644 --- a/shells/aliases +++ b/shells/aliases @@ -35,9 +35,8 @@ alias mkdir='mkdir -p' # Shortcut for rewriting wp permalinks alias perms='wp rewrite flush' -#Clear terminal and screenfetch -#alias cls='clear; neofetch' -alias cls='clear; weather moon' +#Clear terminal and try to get moon phase. If it takes longer than .5 seconds then it will show neofetch +alias cls='clear; timeout 0.5s weather moon || neofetch' #An alias for my standard less configuration #I don't set it to lessc because sometimes I don't use this config and I always forget how to ignore an alias