Richard Bucker

my CoreOS .profile

Posted at — May 31, 2015

One of the things that I like about CoreOS is that it has a “toolbox"toolbox is a small script that launches a container to let you bring in your favorite debugging or admin tools. –CoreOSAnd as point in fact I am currently using it as my development environment even though I should probably be creating a devbox instead. (“we” already know that this is bad Dockerfile design)My .profile currently looks like:$cat .profile#!/bin/shecho “Configuring the environment"export GOPATH=$HOME/_vendor:$HOME:$HOME/src/bitbucket.org/netcentrix/gwtcmp/_vendorexport PATH=$PATH:$HOME/bin:$HOME/_vendor/binexport PS1=”[\033[01;32m]\u@\h[\033[01;34m] \w $[\033[00m]“if [ ! -e $HOME/.gitconfig ]; thengit config –global alias.co checkoutgit config –global alias.br branchgit config –global alias.ci commitgit config –global alias.st statusgit config –global alias.unstage ‘reset HEAD –‘git config –global alias.last ‘log -1 HEAD'fiexport CDPATH=.:~:~/src/bitbucket.org/netcentrix:~/src/bitbucket.org/oneoffcodeuptimeSome of the downsides here is (a) only one SSH sessions (b) spawn get’s hung when the sessions times out and I have to log into the host to kill the container. (c) shares the IP address with the host OS [not a big deal]. At least my development is going well for the moment.