Skip to content

Instantly share code, notes, and snippets.

@leshniak
Created February 4, 2020 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leshniak/3fe78e983e53771a1b97a1488cb33991 to your computer and use it in GitHub Desktop.
Save leshniak/3fe78e983e53771a1b97a1488cb33991 to your computer and use it in GitHub Desktop.
Fish greeting for printing MOTD on byobu init
function fish_greeting
set -l motd "/run/motd.dynamic"
status --is-login
if test $status -ne 0;
and test -n $BYOBU_TTY;
and test $TMUX_PANE = '%1';
and test -f $motd
cat $motd
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment