Shell Aliases

Here are some aliases that I find particularly useful and use every day. I use Fish shell but these should be easily translatable to other shells.


alias dc="docker-compose"
alias dcud="docker-compose up -d"  
alias dcd="docker-compose down"  
alias dcp="docker-compose pull"  
alias dclf="docker-compose logs -f"  
alias glances="docker run --rm --name=glances -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host --network host -it nicolargo/glances:latest-full"  
alias ctop="docker run --rm -ti --name=ctop --volume /var/run/docker.sock:/var/run/docker.sock:ro"  

# pull, down, up 
pdu() { dcp dcd dcud }  

# down, up 
downup() { dcd dcud }

Git (in .gitconfig)

	st = status --short -uno
	ci = commit
	ca = commit --amend
	caa = commit -a --amend
	br = branch
	co = checkout
	cob = checkout -b
	df = diff
	lg = log -p --pretty=fuller --abbrev-commit
	lgg = log --pretty=fuller --abbrev-commit --stat
	up = pull --rebase
	wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
	sreset = submodule foreach --recursive git reset --hard


alias om="overmind"
alias ber="bundle exec ruby"
alias bers="bundle exec rspec"
alias bec="env HEADLESS_CHROME=true bundle exec cucumber"
alias becc="bundle exec cucumber"


function weather