Personal Oh My Zsh customization directory.
Clone to ~/.oh-my-zsh/custom
or point $ZSH_CUSTOM
to the clone location.
-
./aliases.zsh
: miscellaneous aliases and shell functions. -
./themes/
: oh my zsh themes. Generally git submodules. -
./plugins/
: oh my zsh plugins. Generally git submodules. -
./other/
: other zsh configuration. Currently just p10k config.
Start by installing zsh and Oh My Zsh.
By default, Oh My Zsh's custom directory is located at ~/oh-my-zsh/custom
. The simplest way to use this repo is to clone it to that location. Alternatively, clone anywhere and point $ZSH_CUSTOM
to the clone location.
This repo includes several submodules that need to be initialized/populated. This can be done automatically at cloning time by passing --recurse-submodules
. Since some submodules are quite large (e.g. powerlevel10k), it's also recommended to pass --shallow-submodules
to perform shallow clones for the submodules.
$ cd ~/.oh-my-zsh/
$ rm -r ./custom
# Option 1 - all at one
$ git clone --recurse-submodules --shallow-submodules -- https://github.com/brianschubert/oh-my-zsh-custom.git custom
# Optiona 2 - manual
$ git clone -- https://github.com/brianschubert/oh-my-zsh-custom.git custom
$ cd custom
$ git submodule init
$ git submodule update --depth=1
- Link the config file
$ ln -fs ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/other/.p10k.zsh ~/.p10k.zsh
- Install the reocommended fonts.
-
FZF
- Install per README
- Add
fzf
toplugins
. Ships with Oh My Zsh.
-
poetry
- Install normally.
- Run
$ mkdir $ZSH_CUSTOM/plugins/poetry $ poetry completions zsh > $ZSH_CUSTOM/plugins/poetry/_poetry
- Add
poetry
toplugins
.
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
git
colored-man-pages
command-not-found
zsh-syntax-highlighting
# fzf # if fzf installed
# poetry # if poetry installed
# rust # if rust installed
# docker
# docker-compose
)
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh