From adfa1e0a57781dfc422f9f598eb6a7ac2b54824a Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Mon, 29 Jan 2024 09:18:34 -0800 Subject: [PATCH] feat: Override default fish greeting to allow the motd to work --- .../usr/share/fish/functions/fish_greeting.fish | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 system_files/desktop/shared/usr/share/fish/functions/fish_greeting.fish diff --git a/system_files/desktop/shared/usr/share/fish/functions/fish_greeting.fish b/system_files/desktop/shared/usr/share/fish/functions/fish_greeting.fish new file mode 100644 index 00000000..35b39dd6 --- /dev/null +++ b/system_files/desktop/shared/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