Skip to content

Instantly share code, notes, and snippets.

@rafaelkallis
Last active November 23, 2018 22:51
Show Gist options
  • Save rafaelkallis/a9b8c1fdd96a4fd49fb929398ed59fe4 to your computer and use it in GitHub Desktop.
Save rafaelkallis/a9b8c1fdd96a4fd49fb929398ed59fe4 to your computer and use it in GitHub Desktop.
.zshrc
# Check if zplug is installed
if [[ ! -d ~/.zplug ]]; then
git clone https://github.com/zplug/zplug ~/.zplug
source ~/.zplug/init.zsh && zplug update --self
fi
# Essential
source ~/.zplug/init.zsh
zplug "mafredri/zsh-async", from:github
zplug "sindresorhus/pure", use:pure.zsh, from:github, as:theme
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-history-substring-search"
# Install packages that have not been installed yet
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
# vim keybindings
bindkey -v
export PATH="$HOME/miniconda3/bin:$PATH"
export PATH="$(npm bin --global):$PATH"
export HISTFILE=~/.zsh_history
export HISTSIZE=100000
export SAVEHIST=100000
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment