From fd6e597278078a81bf20d4cb2270b85c0391c0eb Mon Sep 17 00:00:00 2001 From: jstmax! <87650746+jstmaxlol@users.noreply.github.com> Date: Sat, 25 Oct 2025 23:55:19 +0200 Subject: added fish_greeting in cfg/ --- cfg/fish_greeting.fish | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cfg/fish_greeting.fish (limited to 'cfg/fish_greeting.fish') 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 -- cgit v1.3.1