-
-
Save FarisMarouane/e52ed3b5a8d90a46a6f1c6451f42d6d2 to your computer and use it in GitHub Desktop.
zgen zshrc
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
# zgen installation | |
# git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen" | |
# load zgen | |
source "${HOME}/.zgen/zgen.zsh" | |
alias emacs="emacs -nw" | |
alias ne="emacs" | |
alias y='yarn' | |
alias yui='y upgrade-interactive --latest' | |
# add android sdk tools & others | |
export PATH="$PATH:/usr/local/sbin:${HOME}/Library/Android/sdk/platform-tools/" | |
# enable error redirect from react-native app | |
export REACT_EDITOR="code" | |
zstyle ':completion:*:*:docker:*' option-stacking yes | |
zstyle ':completion:*:*:docker-*:*' option-stacking yes | |
# 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/sudo | |
zgen oh-my-zsh plugins/docker | |
zgen oh-my-zsh plugins/docker-compose | |
zgen oh-my-zsh plugins/brew | |
zgen oh-my-zsh plugins/osx | |
zgen oh-my-zsh plugins/common-aliases | |
zgen oh-my-zsh plugins/command-not-found | |
zgen oh-my-zsh plugins/gitfast | |
zgen oh-my-zsh plugins/node | |
zgen oh-my-zsh plugins/npm | |
zgen load zsh-users/zsh-syntax-highlighting | |
zgen load lukechilds/zsh-nvm | |
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