Skip to content

Instantly share code, notes, and snippets.

@jshah
Last active May 17, 2020 05:57
Show Gist options
  • Save jshah/1fc66af8f0cd5b087af92361df49d3fc to your computer and use it in GitHub Desktop.
Save jshah/1fc66af8f0cd5b087af92361df49d3fc to your computer and use it in GitHub Desktop.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export PATH=$HOME/bin:/usr/local/bin:$PATH:/usr/local/go/bin
export ZSH="/Users/jshah/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
HIST_STAMPS="yyyy-mm-dd"
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Add wisely, as too many plugins slow down shell startup.
plugins=(rails ruby git docker docker-compose)
source $ZSH/oh-my-zsh.sh
source /Users/jshah/code/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# User configuration
export GOBIN="$HOME/go/bin"
export LANG=en_US.UTF-8
# Don't share history across terminal tabs
unsetopt inc_append_history
unsetopt share_history
# Ignore duplicate history entries
setopt histignoredups
# Allow [ or ] whereever you want
unsetopt nomatch
# zshrc
alias reload='source ~/.zshrc'
alias zshrc='subl ~/.zshrc'
# CD
alias website='cd ~/code/website'
# Git
alias glfp='gl && git fetch --prune'
# rbenv
export PATH="$PATH:$HOME/.rbenv/bin:$HOME/.rbenv/shims"
eval "$(rbenv init -)";
#nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment