updated boot2docker auto loading
parent
1f4d803f88
commit
4b4abf9dcf
|
|
@ -39,6 +39,26 @@ function clone()
|
|||
fi
|
||||
}
|
||||
|
||||
# sshs into boot2docker
|
||||
function b2d() {
|
||||
if [ -n $(ps | grep .boot2docker) ]; then
|
||||
b2dinit
|
||||
fi
|
||||
|
||||
boot2docker ssh
|
||||
}
|
||||
|
||||
function b2dinit()
|
||||
{
|
||||
if [ -n $(ps | grep .boot2docker) ]; then
|
||||
echo "Initializing boot2docker"
|
||||
boot2docker init > /dev/null
|
||||
export DOCKER_HOST=tcp://$(boot2docker ip):2376
|
||||
export DOCKER_CERT_PATH=~/.boot2docker/certs/boot2docker-vm
|
||||
export DOCKER_TLS_VERIFY=1
|
||||
fi
|
||||
}
|
||||
|
||||
# runs vim in the terminal without forking, great for tmux on my mac
|
||||
function vimt(){
|
||||
if [[ $# -eq 0 ]]; then
|
||||
|
|
|
|||
|
|
@ -25,9 +25,8 @@ export ANSIBLE_HOSTS="~/.ansible/hosts"
|
|||
|
||||
export POWERLINE_CONFIG_COMMAND=~/Tools/modules/powerline/scripts/powerline-config
|
||||
export LANG="en_US.UTF-8"
|
||||
export WINDOWS="FALSE"
|
||||
export BOOT2DOCKER=/usr/local/Cellar/boot2docker/1.6.0/bin
|
||||
|
||||
export WINDOWS="FALSE"
|
||||
|
||||
if [ -d "${HOME}/.bin" ] ; then
|
||||
PATH=${HOME}/.bin:${PATH}
|
||||
|
|
@ -35,6 +34,7 @@ fi
|
|||
|
||||
# give windows boxes a chance to override environment
|
||||
if [ -d "/c/Windows" ]; then
|
||||
|
||||
if [ -d "${HOME}/tools/vim" ] ; then
|
||||
PATH=${HOME}/Tools/vim:${PATH}
|
||||
export WINDOWS="TRUE"
|
||||
|
|
@ -52,12 +52,12 @@ if [ -d "/c/Projects" ]; then
|
|||
. ~/.work_profile
|
||||
fi
|
||||
|
||||
PATH=${PATH}:${GOROOT}/bin:${GOPATH}/bin:${BOOT2DOCKER}
|
||||
|
||||
export GIT_EDITOR=vim
|
||||
export EDITOR=$GIT_EDITOR # Default Editor
|
||||
export VISUAL=$EDITOR # Visual not really used differently from EDITOR anymore
|
||||
|
||||
PATH=${PATH}:${GOROOT}/bin:${BOOT2DOCKER}:${GOPATH}/bin
|
||||
|
||||
# http://stackoverflow.com/questions/410616/increasing-the-maximum-number-of-tcp-ip-connections-in-linux
|
||||
# run these to increase concurrent connections in linux
|
||||
# sudo sysctl net.ipv4.ip_local_port_range="15000 61000"
|
||||
|
|
|
|||
|
|
@ -17,3 +17,7 @@ ls -A ${source} | xargs -I file cp --symbolic-link -r ${source}/file ${dest}
|
|||
|
||||
rm -rf ~/.git
|
||||
rm -rf ~/bootstrap.sh
|
||||
|
||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
|
||||
|
||||
source ~/.profile
|
||||
|
|
|
|||
Loading…
Reference in New Issue