aboutsummaryrefslogtreecommitdiff
path: root/functions/fish_greeting.fish
diff options
context:
space:
mode:
Diffstat (limited to 'functions/fish_greeting.fish')
-rw-r--r--functions/fish_greeting.fish27
1 files changed, 27 insertions, 0 deletions
diff --git a/functions/fish_greeting.fish b/functions/fish_greeting.fish
new file mode 100644
index 0000000..2c8193d
--- /dev/null
+++ b/functions/fish_greeting.fish
@@ -0,0 +1,27 @@
+function fish_greeting
+
+ if not set -q TMUX
+
+ if set -q SSH_CONNECTION
+ if command -sq fastfetch
+ fastfetch -c paleofetch.jsonc
+ end
+
+ if command -sq bsdfetch
+ bsdfetch
+ end
+ end
+
+ if command -sq fortune
+ if string match -q -e 'Linux' (uname)
+ echo
+ fortune linux
+ echo
+ else
+ fortune
+ end
+ end
+
+ end
+
+end