This is my Zsh configuration. Feel free to clone/copy and reuse.
The main files that do the work are:
-
.zshrc
: Main settings file. It contains oh-my-zsh settings, and also my custom functions and git aliases. -
zshscripts/themes/oh-my-posh-lucas.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
.
I use the following git submodules, which are stored in zshscripts/
:
- zsh-syntax-highlighting to enable syntax highlighting for the commands I enter 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.)