some profile tweaks for efficiency
parent
c06d259a30
commit
f7a9427069
|
|
@ -3,7 +3,6 @@ alias cdp="cd -"
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias pd="pushd $1"
|
alias pd="pushd $1"
|
||||||
alias fuck='$(thefuck $(fc -ln -1))'
|
alias fuck='$(thefuck $(fc -ln -1))'
|
||||||
alias fortune=${GOBIN}/${FORTUNE}
|
|
||||||
|
|
||||||
# list files
|
# list files
|
||||||
alias ll='ls --color=always -l'
|
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
|
# delete merged local branches
|
||||||
function prunelocal(){
|
function prunelocal(){
|
||||||
for b in `git branch --merged | grep -v \*`; do git branch -D $b; done
|
for b in `git branch --merged | grep -v \*`; do git branch -D $b; done
|
||||||
|
|
@ -51,7 +55,7 @@ function b2dinit() {
|
||||||
boot2docker init &> /dev/null
|
boot2docker init &> /dev/null
|
||||||
boot2docker up &> /dev/null
|
boot2docker up &> /dev/null
|
||||||
export DOCKER_HOST=tcp://$(boot2docker ip):2376
|
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
|
export DOCKER_TLS_VERIFY=1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
.dev_profile
12
.dev_profile
|
|
@ -38,16 +38,18 @@ if [ -d "/c/Windows" ]; then
|
||||||
WINDOWS="TRUE"
|
WINDOWS="TRUE"
|
||||||
ANSIBLE_HOSTS="/c/ansible/hosts"
|
ANSIBLE_HOSTS="/c/ansible/hosts"
|
||||||
GOROOT="/d/Programs/Go"
|
GOROOT="/d/Programs/Go"
|
||||||
|
GOPATH="/d/Projects/Programming/go"
|
||||||
BOOT2DOCKER=/c/Program\ Files/Boot2Docker\ for\ Windows/
|
BOOT2DOCKER=/c/Program\ Files/Boot2Docker\ for\ Windows/
|
||||||
GIT_EDITOR=~/Tools/vim/gvim.exe
|
GIT_EDITOR=~/Tools/vim/gvim.exe
|
||||||
export FORTUNE=fortune.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
|
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 EDITOR=$GIT_EDITOR
|
||||||
export VISUAL=$EDITOR
|
export VISUAL=$EDITOR
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ if [[ $DEBUG ]] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias projects='cd /c/Projects'
|
alias projects='cd /c/Projects'
|
||||||
|
|
||||||
export GOROOT="/c/Go"
|
export GOROOT="/c/Go"
|
||||||
export GOPATH="/z/go"
|
export GOPATH="/z/go"
|
||||||
export GOBIN="/z/go/winbin"
|
export GOBIN="/z/go/winbin"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue