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,6 +7,7 @@
interactiveShellInit = ''
function fish_greeting
if test -z $DEVSHELL_NIX;
echo The time is (set_color purple; date +%T; set_color purple)
if test -z $SSH_CLIENT;
fastfetch
@ -14,6 +15,7 @@
neofetch
end
end
end
'';
shellAliases = {
@ -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 = ''