Created
January 4, 2018 04:00
-
-
Save andizzle/c8ae689dfbe74a00b9888bccc728d82f to your computer and use it in GitHub Desktop.
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
ZSH_THEME="andyblessington" | |
# ZSH_THEME="avit" | |
# 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 golang brew tmux web-search) | |
source $ZSH/oh-my-zsh.sh | |
source /usr/local/share/zsh/site-functions/_aws | |
# User configuration | |
export PATH="/usr/local/opt/python/libexec/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:/usr/local/go/bin" | |
# extra aliases | |
alias dc="docker-compose" | |
alias dm="docker-machine" | |
alias ds="docker-swarm" | |
alias clean="docker ps -aq -f status=exited | xargs docker rm && docker images -f dangling=true -q | xargs docker rmi" | |
alias st='stree' | |
alias tf='terraform' | |
alias mk='minikube' | |
alias kc='kubectl' | |
alias awsps='aws-profile-switch switch' | |
alias lower='tr "[:upper:]" "[:lower:]"' | |
alias api='cd ~/Work/OSS-API-Bells' | |
alias apiv3='cd ~/Work/Go/github.com/opensimsim/api-v3' | |
alias util='cd ~/Work/OSS-Utils-Bells' | |
alias web='cd ~/Work/OSS-Angular' | |
alias micro='cd ~/Work/OSS-Micro' | |
export HOMEBREWPATH=/usr/local/ | |
export GOROOT=$(go env GOROOT) | |
export GOPATH=/usr/local/go | |
export CDPATH=".:..:$HOME" | |
#emacs speedup | |
ec () { | |
pgrep -f 'emacs --daemon' > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
emacs --daemon | |
fi | |
emacsclient -t $@ | |
} | |
# eval "$(rbenv init -)" | |
# aws completion | |
# complete -C aws_completer aws | |
#quick eval docker env | |
de () { | |
DMMACHINE=${1:-vm-1} | |
DMSTATUS=$(docker-machine status $DMMACHINE) | |
if [[ ${DMSTATUS} == "Running" ]]; then | |
eval "$(docker-machine env ${DMMACHINE})" | |
fi | |
} | |
# de | |
mce () { | |
DMSTATUS=$(minikube status) | |
if [[ ${DMSTATUS} == *"minikube: Running"* ]]; then | |
eval "$(minikube docker-env)" | |
fi | |
} | |
# mce | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment