kallahan23 / zsh-motd Goto Github PK
View Code? Open in Web Editor NEWDisplay a customisable Message of the Day
License: GNU General Public License v3.0
Display a customisable Message of the Day
License: GNU General Public License v3.0
when run on mac, need:
brew install dos2unix
dos2unix -f /Users/tencent/.oh-my-zsh/custom/plugins/zsh-motd/zsh-motd.plugin.zsh
Something that could be neat would be to have a ZSH_MOTD_RANDOM_COW
that, if set would automatically pick an option from cowsay -l
at random. A common way I've seen to get a random cowfile is to use ls /usr/local/share/cows/ | shuf -n 1
.
One problem I've seen is the following though (on MacOS), so probably should be a bit more robust?
$ fortune | cowsay -f `ls /usr/local/share/cows/ | shuf -n 1`
cowsay: Can't locate Acme/Cow.pm in @INC (you may need to install the Acme::Cow module) (@INC contains: /Library/Perl/5.30/darwin-thread-multi-2level /Library/Perl/5.30 /Network/Library/Perl/5.30/darwin-thread-multi-2level /Network/Library/Perl/5.30 /Library/Perl/Updates/5.30.2 /System/Library/Perl/5.30/darwin-thread-multi-2level /System/Library/Perl/5.30 /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level /System/Library/Perl/Extras/5.30) at /usr/local/Cellar/cowsay/3.04_1/share/cows/DragonAndCow.pm line 3, <STDIN> line 6.
BEGIN failed--compilation aborted at /usr/local/Cellar/cowsay/3.04_1/share/cows/DragonAndCow.pm line 3, <STDIN> line 6.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.