aboutsummaryrefslogtreecommitdiff
path: root/functions/fish_greeting.fish
diff options
context:
space:
mode:
authorDeposite Pirate2025-01-12 14:40:33 +0100
committerDeposite Pirate2025-01-12 14:40:33 +0100
commite7764f9b08072cfb67c2d3ecf075df9a80aee6fd (patch)
tree628d5f66e1d62f1d710bcbe472aa68b5e19522f8 /functions/fish_greeting.fish
parent62d7fa8cfa2e6de053d7c1238bd8fdcdf0cc8a7d (diff)
Import config.
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