Created
February 4, 2020 21:26
-
-
Save leshniak/3fe78e983e53771a1b97a1488cb33991 to your computer and use it in GitHub Desktop.
Fish greeting for printing MOTD on byobu init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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