From f56cdeea7c246295e9d40567d166cd8a5cd1e95d Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Wed, 19 Jul 2023 20:09:47 +0100 Subject: [PATCH] chore: fix clear on non nix systems --- alias.fish | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/alias.fish b/alias.fish index 31d4b7e..c176e2e 100644 --- a/alias.fish +++ b/alias.fish @@ -1,2 +1,8 @@ -alias cclear /run/current-system/sw/bin/clear +function cclear + if test -e /nix then + /run/current-system/sw/bin/clear + else + /bin/clear + end +end alias clear "cclear && hyfetch"