/zsh-motd

zsh 实现 motd

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Zsh Message of the Day

This plugin prints a message every time you open your terminal.

Prerequisites

It's ok if you don't have a certain package installed. You just won't get the pretty output.

  • Cowsay
  • Fortune
  • Figlet
  • Lolcat

Options

  • Default is a fortune or a standard greeting if fortune is not installed
  • Add export ZSH_MOTD_CUSTOM=<A static message> to your .zshrc to set the message to a static message
  • Add export ZSH_MOTD_WOTD to your .zshrc to set the message to a random word
  • Add export ZSH_MOTD_ALWAYS to your .zshrc so that the full header is shown every time, instead of the default every 3 hours

Installation

Oh My Zsh

  • Clone the repository:
git clone https://github.com/Kallahan23/zsh-motd ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-motd
  • Enable this plugin by adding zsh-motd to the plugins array in your zshrc file:
plugins=(... zsh-motd)