Skip to content

Instantly share code, notes, and snippets.

@alexanderbez
Created August 20, 2018 14:04
Show Gist options
  • Save alexanderbez/1b5761fe76a70baa15949730eb60a88b to your computer and use it in GitHub Desktop.
Save alexanderbez/1b5761fe76a70baa15949730eb60a88b to your computer and use it in GitHub Desktop.
ZSH configuration
# Path to your oh-my-zsh installation.
export ZSH="/Users/aleksbez/.oh-my-zsh"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bureau"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
osx
brew
docker
)
source $ZSH/oh-my-zsh.sh
# User configuration
alias ls="ls -lahG"
alias zshconfig="vim ~/.zshrc"
alias pj="python -m json.tool"
alias python="python3"
export GOPATH=$HOME/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
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
func purgeLocalGitBranches() {
red='\033[0;31m'
echo "${red}Purging local branches no longer found on remote..."
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment