Skip to content

Commit

Permalink
fix: enable MOTD for fish (ublue-os#897) (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: m2 <[email protected]>
  • Loading branch information
pull[bot] and m2Giles authored Feb 12, 2024
1 parent fbff6ea commit 589a679
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions usr/share/fish/functions/fish_greeting.fish
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 589a679

Please sign in to comment.