Skip to content

Instantly share code, notes, and snippets.

@Justkant
Last active October 2, 2019 10:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Justkant/4ca3da7f1d4c51a7a3974be875a0471b to your computer and use it in GitHub Desktop.
Save Justkant/4ca3da7f1d4c51a7a3974be875a0471b to your computer and use it in GitHub Desktop.
zgen zshrc
# zgen installation
# git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
# load zgen
source "${HOME}/.zgen/zgen.zsh"
# add android sdk tools & others for osx
export PATH="$PATH:/usr/local/sbin:${HOME}/Library/Android/sdk/platform-tools"
# enable error redirect from react-native app
export REACT_EDITOR="code"
export LC_ALL=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
# check if there's no init script
if ! zgen saved; then
echo "Creating a zgen save"
zgen oh-my-zsh
# plugins
zgen oh-my-zsh plugins/docker
zgen oh-my-zsh plugins/docker-compose
zgen oh-my-zsh plugins/sudo
zgen oh-my-zsh plugins/brew # osx specific
zgen oh-my-zsh plugins/osx # osx specific
zgen oh-my-zsh plugins/common-aliases
zgen oh-my-zsh plugins/command-not-found
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/gitfast
zgen oh-my-zsh plugins/node
zgen oh-my-zsh plugins/npm
zgen oh-my-zsh plugins/yarn
zgen oh-my-zsh plugins/emacs
zgen oh-my-zsh plugins/kubectl
zgen oh-my-zsh plugins/vscode
zgen oh-my-zsh plugins/gcloud
zgen load zsh-users/zsh-syntax-highlighting
zgen load zsh-users/zsh-autosuggestions
# completions
zgen load zsh-users/zsh-completions src
zgen load lukechilds/zsh-better-npm-completion
# theme
zgen oh-my-zsh themes/clean
# save all to init script
zgen save
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment