Skip to content

Instantly share code, notes, and snippets.

@crrobinson14
Created March 23, 2016 18:15
Show Gist options
  • Save crrobinson14/d0db029e475ecfa3e4ec to your computer and use it in GitHub Desktop.
Save crrobinson14/d0db029e475ecfa3e4ec to your computer and use it in GitHub Desktop.
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
export EVENT_NOKQUEUE=1
export GIT_MERGE_AUTOEDIT=no
export MACHINE_NATIVE_SSH=1
export HOMEBREW_GITHUB_API_TOKEN=GETYOUROWNFREAKINGTOKEN
export LANG=en_US.UTF-8
alias v="ls -l"
alias glg='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --date=relative'
source ~/git-completion.bash
export PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
export GIT_PS1_SHOWDIRTYSTATE=1
export PATH=$PATH:/usr/local/mysql/bin:$HOME/.composer/vendor/bin:~/terraform
complete -C aws_completer aws
# http://blog.urfix.com/25-%E2%80%93-sick-linux-commands/
? () { echo "$*" | bc -l; }
alias vt="ls -R | grep ':$' | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'"
alias dit="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz images -t"
export TF_VAR_nr_aws_secret_key=GETYOUROWNDARNEDKEY
export TF_VAR_nr_aws_access_key=ITWOULDNTBEASECRETIFITOLDYOU
# Copied from Docker QuickStart script
export VM=default
export DOCKER_MACHINE=/usr/local/bin/docker-machine
export VBOXMANAGE=/Applications/VirtualBox.app/Contents/MacOS/VBoxManage
unset DYLD_LIBRARY_PATH
unset LD_LIBRARY_PATH
$VBOXMANAGE showvminfo $VM &> /dev/null
VM_EXISTS_CODE=$?
if [ $VM_EXISTS_CODE -eq 1 ]; then
echo "Creating Machine $VM..."
$DOCKER_MACHINE rm -f $VM &> /dev/null
rm -rf ~/.docker/machine/machines/$VM
$DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 $VM
else
echo "Machine $VM already exists in VirtualBox."
fi
echo "Starting machine $VM..."
$DOCKER_MACHINE start $VM
eval $($DOCKER_MACHINE env $VM --shell=bash)
@crrobinson14
Copy link
Author

This is my Bash profile, slightly redacted. I admit, it's a bit of a mess - it grew organically over time and I don't actively "code" on it or spend time thinking about how to optimize it. It's a classic example of "the plumber's pipes always leak."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment