Skip to content

Instantly share code, notes, and snippets.

@richtan
Last active October 18, 2020 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richtan/090468f9e529c58d79fd6dc81aebe6e6 to your computer and use it in GitHub Desktop.
Save richtan/090468f9e529c58d79fd6dc81aebe6e6 to your computer and use it in GitHub Desktop.
My zsh config
#!/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