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 = ''
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 = ''