css is used in some places in this page. u might wanna turn that on if things are weird.Demo animation with no color (refresh to see animation again):
~~ welcome to ~~
$$\ $$\ $$\ $$\ $$\ $$\
$$ | \__|$$ | $$ | $$ | $$ |
$$$$$$\ $$\ $$ | $$$$$$$ | $$$$$$\ $$$$$$$\ $$ |$$\ $$\ $$$$$$$\
\_$$ _| $$ |$$ |$$ __$$ |$$ __$$\ $$ _____|$$ |$$ | $$ |$$ __$$\
$$ | $$ |$$ |$$ / $$ |$$$$$$$$ | $$ / $$ |$$ | $$ |$$ | $$ |
$$ |$$\ $$ |$$ |$$ | $$ |$$ ____| $$ | $$ |$$ | $$ |$$ | $$ |
\$$$$ |$$ |$$ |\$$$$$$$ |\$$$$$$$\ $$\\$$$$$$$\ $$ |\$$$$$$ |$$$$$$$ |
\____/ \__|\__ \_______| \_______|\__|\_______|\__| \______/ \_______/
A PLACE FOR WEB PAGES
|Supported (animation plays)||Prompt appears before animation||Prompt command support||Update checking|
|Fish||(no syntax highlighing)||Untested|
~sebastian/bin/motd-*. I strongly recommend that for security reasons you copy the file into your own home directory and run a local copy instead of just trusting my copy. To do this, run
cp ~sebastian/bin/motd-shell ~/bin, replacing
motd-shellwith the script corresponding to the shell that you use. Although I know that I'm not malicious, you don't, so you shouldn't take my word for it.
~sebastian/bin/motd-bash "$PS1"(optionally, add a second argument:
/home/entoreor/bin/motd.ps1(ported to PowerShell by ~entoreor; i take no credit for this one. thanks! note that tilde notation (~user) can't be used in PowerShell.)
~sebastian/bin/motd-zsh "$PS1"(optionally, add a second argument:
"$(whence -f precmd)")
~sebastian/bin/motd-dash(your mileage may vary depending on what shell you're running this on.)
touch ~/.hushloginto silence the old official prompt (if you haven't already).
~/.profile. You can find the commands for that above under "Running it once". If your shell doesn't read .profile, you may need to put it in a shell-specific profile (e.g. Bash users should use
~/.bash_profile). Fish users should need to put
status --is-login; and motd-fishin
~/.config/fish/config.fish. Ensure that the motd script runs AFTER the PS1 variable has been set. DO NOT put the script from my home directory into your profile. Copy the script into your home directory and run it from there instead. It's a pretty terrible idea to let another user have control of a script that runs everytime you log in.
--no-update-checkas a flag to the script will suppress update checking messages on Bash and Zsh. Using Bash as an example, you'd run
~sebastian/bin/motd-bash "$PS1" --no-update-check. The
--no-update-checkflag must be the last argument passed to the program. You can also manually modify the script and comment out the part of the code in charge of update checking if you really want.