From 589a67986535141502a0e13306583435d6ae0c09 Mon Sep 17 00:00:00 2001 From: "pull[bot]" <39814207+pull[bot]@users.noreply.github.com> Date: Sun, 11 Feb 2024 22:28:38 -0600 Subject: [PATCH] fix: enable MOTD for fish (#897) (#9) Co-authored-by: m2 <69128853+m2Giles@users.noreply.github.com> --- usr/share/fish/functions/fish_greeting.fish | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 usr/share/fish/functions/fish_greeting.fish diff --git a/usr/share/fish/functions/fish_greeting.fish b/usr/share/fish/functions/fish_greeting.fish new file mode 100644 index 00000000000..42676df7f33 --- /dev/null +++ b/usr/share/fish/functions/fish_greeting.fish @@ -0,0 +1,13 @@ +function fish_greeting + if test -d "$HOME" + if test ! -e "$HOME"/.config/no-show-user-motd + if test -x "/usr/libexec/ublue-motd" + /usr/libexec/ublue-motd + end + end + end + + if set -q fish_private_mode + echo "fish is running in private mode, history will not be persisted." + end +end \ No newline at end of file