This is the Zsh configuration I use for my Mac. It's primarily based on Lucas Costi's settings which are part of his great mac-config repo.
I only use another customized theme and added some personal aliases to the '.zshrc'.
The main files that do the work are:
-
.zshrc
: Main settings file. It contains oh-my-zsh settings, Lucas' custom functions and my brew, git, directory, kubectl and flux aliases. -
addons/themes/clean-detailed-customized.omp.json
: My custom Oh My Posh theme file.Oh My Posh is a prompt customisation tool that allows you to do show fancy things on the prompt. On macOS, you must first install it using brew. Oh My Posh and the theme file are loaded from
.zshrc
.
The following git submodules, which are stored in addons/
, are part of the setting:
- zsh-syntax-highlighting to enable syntax highlighting for the commands entered at the prompt.
- zsh-autosuggestions to enable autosuggestions after the prompt.
- cheat/cheatsheets for use with the
cheat
command. The cheat command was installed using brew, but the cheatsheets are stored here. (See also the cheat config file.)
The repo contains a script called zsh-config.sh
which checks all the prerequisites for the customized Zsh-Shell and will install missing packages. Moreover, it copies the .zshrc
to your $HOME location.
Note You first have to make the script executable by
chmod +x zsh-config.sh
Do you want to contribute? That’s great! Contributions are always welcome, no matter how large or small. If you found something odd, feel free to submit a new issue, improve the code by creating a pull request, or by sponsoring this project.