summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjstmax! <87650746+jstmaxlol@users.noreply.github.com>2025-10-25 23:55:19 +0200
committerjstmax! <87650746+jstmaxlol@users.noreply.github.com>2025-10-25 23:55:19 +0200
commitfd6e597278078a81bf20d4cb2270b85c0391c0eb (patch)
tree7a77e595a7f967f11ac857913086db636351634d
parent94d07667fa0e03aff63e1f7f9f673355c2848e7b (diff)
added fish_greeting in cfg/
-rw-r--r--cfg/fish_greeting.fish20
1 files changed, 20 insertions, 0 deletions
diff --git a/cfg/fish_greeting.fish b/cfg/fish_greeting.fish
new file mode 100644
index 0000000..e25c117
--- /dev/null
+++ b/cfg/fish_greeting.fish
@@ -0,0 +1,20 @@
+function fish_greeting
+ if not set -q fish_greeting
+ set -l line1 (printf (_ 'well-cum to %sfiš%s, the %sevil%s šell!') (set_color red) (set_color normal) (set_color red) (set_color normal))
+ set -l line2 \n(printf (_ 'type %snvim%s to use a good text editor.') (set_color red) (set_color normal))
+ set -g fish_greeting "$line1$line2"
+ end
+
+ if set -q fish_private_mode
+ set -l line (_ "fiš is running in private mode, historia will perish upon closure.")
+ if set -q fish_greeting[1]
+ set -g fish_greeting $fish_greeting\n$line
+ else
+ set -g fish_greeting $line
+ end
+ end
+
+ test -n "$fish_greeting"
+ and echo $fish_greeting
+ task # show tasks
+end