My personal MOTD configuration for Mac OS and ZSH.
Needed to generate the banner text. Installation:
brew install figlet
Needed to get events from the Calendar application. Installation:
brew install ical-buddy
Needed to gather CPU and GPU temperature. Installation:
brew install osx-cpu-temp
Needed to gather disk temperature. Installation:
brew install smartmontools
- Clone the repository.
git clone git@github.com:douz/mac-motd.git
- Add the
motd.sh
script at the end of your.zshrc
file.
echo "/full/path/to/repo/mac-motd/motd.sh" >> ~/.zshrc
- Restart your terminal.
The modules are located in the modules
directory. You can select which modules to use and their order in motd.sh
# Set modules to load
modulesArray=(banner temperature hdd_usage battery calendar_events)
You can add your own custom modules just by placing your .sh
scripts in the modules
directory and include them in the modulesArray
variable without the .sh
extension in motd.sh
You can set your own banner message by replacing the value of the variable bannerText
in modules/banner.sh
.
For support and/or contributions, open an issue on this repository or contact dbarahona@me.com