some profile tweaks for efficiency
parent
c06d259a30
commit
f7a9427069
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
12
.dev_profile
12
.dev_profile
|
|
@ -38,16 +38,18 @@ 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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
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…
Reference in New Issue