Skip to content

Commit

Permalink
fix: enable MOTD for fish (ublue-os#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles authored Feb 12, 2024
1 parent aedb45c commit f727cff
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 f727cff

Please sign in to comment.