Last active
October 18, 2020 02:13
-
-
Save richtan/090468f9e529c58d79fd6dc81aebe6e6 to your computer and use it in GitHub Desktop.
My zsh config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
if [ ! -d "${HOME}/.zgen" ]; then | |
git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen" | |
fi | |
source "${HOME}/.zgen/zgen.zsh" | |
if ! zgen saved; then | |
echo "Creating a zgen save..." | |
zgen oh-my-zsh | |
OMZ_PLUGINS=( | |
) | |
for omz_plugin in $OMZ_PLUGINS; do | |
zgen oh-my-zsh plugins/$omz_plugin | |
done | |
PLUGINS=( | |
laggardkernel/git-ignore | |
darvid/zsh-poetry | |
zdharma/fast-syntax-highlighting | |
zsh-users/zsh-autosuggestions | |
zsh-users/zsh-completions | |
) | |
for plugin in $PLUGINS; do | |
zgen load $plugin | |
done | |
zgen load denysdovhan/spaceship-prompt spaceship | |
zgen save | |
fi | |
export PATH="$PATH" | |
autoload -Uz compinit && compinit -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment