Created
November 2, 2015 14:16
-
-
Save Samstiles/e61cd2abe222e2a0e582 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
export ZSH=/home/sam/.oh-my-zsh | |
ZSH_THEME="robbyrussell" | |
plugins=(git) | |
export PATH="$HOME/bin:$HOME/.linuxbrew/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/heroku/bin:$PATH" | |
source $ZSH/oh-my-zsh.sh | |
source ~/z.sh | |
alias e="emacs&" | |
# Git Aliases | |
alias cb="git checkout -B" | |
alias mb="git merge" | |
alias sb="git checkout" | |
alias db="git branch -D" | |
alias gc="git commit -m" | |
alias stat="git status" | |
alias diff="git diff" | |
alias lb="git branch --list" | |
alias fixgitignore="git rm -r --cached .; git add --all; git commit -am ':space_invader: fixing gitignore'" | |
# Misc Utility Aliases | |
alias c="clear" | |
alias killport="fuser -n tcp -k" | |
alias syncfork="git checkout master; git fetch upstream; git merge upstream/master; git push" | |
alias al="subl ~/.zshrc" | |
# Clojure Dev Aliases | |
alias fig="killport 3449; lein figwheel" | |
alias lein="ENVIRONMENT=dev lein" | |
# Docker Aliases | |
alias sd="docker stop $(docker ps -a -q); docker rm $(docker ps -a -q)" | |
alias pleasestop="sudo docker stop zookeeper; sudo docker rm zookeeper;sudo docker stop eureka; sudo docker rm eureka;sudo docker stop cassandra; sudo docker rm cassandra;" | |
alias cassandra="killport 9160; killport 9042; sudo docker run -p 9160:9160 -p 9042:9042 -e HOST_IP=${HOST_IP:-$(hostname -I | awk '{print $1}')} --name cassandra -d docker.liveopslabs.com/cassandra" | |
alias eureka="killport 8080; killport 8009; sudo docker run -p 8080:8080 -p 8009:8009 --name eureka -d docker.liveopslabs.com/eureka" | |
alias zookeeper="killport 8282; killport 2181; sudo docker run -p 8282:8282 -p 2181:2181 --name zookeeper docker.liveopslabs.com/zookeeper" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment