Giter Club home page Giter Club logo

zsh-motd's People

Contributors

kallahan23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zsh-motd's Issues

file have CR char.

@Kallahan23

when run on mac, need:
brew install dos2unix
dos2unix -f /Users/tencent/.oh-my-zsh/custom/plugins/zsh-motd/zsh-motd.plugin.zsh

Random Cow

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.