From 1decad1cee261716234e135732da0d8569e390eb Mon Sep 17 00:00:00 2001 From: blahai Date: Wed, 13 Nov 2024 21:09:11 +0200 Subject: [PATCH] Home: fish --- modules/home-manager/cli/fish/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/home-manager/cli/fish/default.nix b/modules/home-manager/cli/fish/default.nix index 64c5156..8891d01 100644 --- a/modules/home-manager/cli/fish/default.nix +++ b/modules/home-manager/cli/fish/default.nix @@ -7,11 +7,13 @@ interactiveShellInit = '' function fish_greeting - echo The time is (set_color purple; date +%T; set_color purple) - if test -z $SSH_CLIENT; - fastfetch - else - neofetch + if test -z $DEVSHELL_NIX; + echo The time is (set_color purple; date +%T; set_color purple) + if test -z $SSH_CLIENT; + fastfetch + else + neofetch + end end end ''; @@ -56,6 +58,12 @@ }; functions = { + os-age = '' + function os-age + stat / | awk '/Birth: /{print $2 " " substr($3,1,5)}' + end + ''; + # Credit for these 3 # https://www.reddit.com/r/linux/comments/1fq0za8/comment/lp1ybdn disks = ''