some profile tweaks for efficiency

moveTools
Adam Veldhousen 9 years ago
parent c06d259a30
commit f7a9427069
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -3,7 +3,6 @@ alias cdp="cd -"
alias ..='cd ..'
alias pd="pushd $1"
alias fuck='$(thefuck $(fc -ln -1))'
alias fortune=${GOBIN}/${FORTUNE}
# list files
alias ll='ls --color=always -l'

@ -1,4 +1,8 @@
# vim: set ft=sh
#!/bin/bash
#vim: set ft=sh
IFS=$'\n$\t'
# delete merged local branches
function prunelocal(){
for b in `git branch --merged | grep -v \*`; do git branch -D $b; done
@ -10,7 +14,7 @@ function printmotd(){
else
cat ~/motd
fi
echo ""
echo ""
$FORTUNE
echo ""
}
@ -51,7 +55,7 @@ function b2dinit() {
boot2docker init &> /dev/null
boot2docker up &> /dev/null
export DOCKER_HOST=tcp://$(boot2docker ip):2376
export DOCKER_CERT_PATH=~/../.boot2docker/certs/boot2docker-vm
export DOCKER_CERT_PATH=~/.boot2docker/certs/boot2docker-vm
export DOCKER_TLS_VERIFY=1
fi
}

@ -38,17 +38,19 @@ if [ -d "/c/Windows" ]; then
WINDOWS="TRUE"
ANSIBLE_HOSTS="/c/ansible/hosts"
GOROOT="/d/Programs/Go"
GOPATH="/d/Projects/Programming/go"
BOOT2DOCKER=/c/Program\ Files/Boot2Docker\ for\ Windows/
GIT_EDITOR=~/Tools/vim/gvim.exe
export FORTUNE=fortune.exe
fi
# if there is a C:/Projects folder on this box then I'm using my work computer, which runs in a VM and is setup differently
if [ -d "/c/Projects" ]; then
export WORK="TRUE"
. ~/.work_profile
# if there is a C:/Projects folder on this box then I'm using my work computer, which runs in a VM and is setup differently
if [ -d "/c/Projects" ]; then
export WORK="TRUE"
. ~/.work_profile
fi
fi
export EDITOR=$GIT_EDITOR
export VISUAL=$EDITOR

@ -4,7 +4,6 @@ if [[ $DEBUG ]] ; then
fi
alias projects='cd /c/Projects'
export GOROOT="/c/Go"
export GOPATH="/z/go"
export GOBIN="/z/go/winbin"

Loading…
Cancel
Save