Home: fish

This commit is contained in:
blahai 2024-11-13 21:09:11 +02:00
parent bd8c46cd26
commit 1decad1cee
Signed by: blahai
SSH key fingerprint: SHA256:ZfCryi+V64yG+vC1ZIIsqgvBCmA31tTi7RJ6M8CvpRc

View file

@ -7,11 +7,13 @@
interactiveShellInit = '' interactiveShellInit = ''
function fish_greeting function fish_greeting
echo The time is (set_color purple; date +%T; set_color purple) if test -z $DEVSHELL_NIX;
if test -z $SSH_CLIENT; echo The time is (set_color purple; date +%T; set_color purple)
fastfetch if test -z $SSH_CLIENT;
else fastfetch
neofetch else
neofetch
end
end end
end end
''; '';
@ -56,6 +58,12 @@
}; };
functions = { functions = {
os-age = ''
function os-age
stat / | awk '/Birth: /{print $2 " " substr($3,1,5)}'
end
'';
# Credit for these 3 # Credit for these 3
# https://www.reddit.com/r/linux/comments/1fq0za8/comment/lp1ybdn # https://www.reddit.com/r/linux/comments/1fq0za8/comment/lp1ybdn
disks = '' disks = ''