updates
parent
02f856db26
commit
eac87f77a3
49
.dev_profile
49
.dev_profile
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Setup go paths and source go bin
|
||||
if [ -d "/c/Windows" ]; then
|
||||
export ANSIBLE_HOSTS="/c/ansible/hosts"
|
||||
export WINDOWS="TRUE"
|
||||
export ANSIBLE_HOSTS="/c/ansible/hosts"
|
||||
export GOPATH="/d/Projects/Programming/Go"
|
||||
export GOROOT="/d/Programs/Go"
|
||||
export GIT_EDITOR=~/Tools/vim/gvim.exe
|
||||
|
|
@ -16,12 +16,11 @@ else
|
|||
fi
|
||||
|
||||
if [ -d "/c/Windows" ]; then
|
||||
export BOOT2DOCKER=/usr/local/Cellar/boot2docker/1.6.0/bin
|
||||
export BOOT2DOCKER=/c/Program\ Files/Boot2Docker\ for\ Windows/
|
||||
else
|
||||
export BOOT2DOCKER=/c/Program\ Files/Boot2Docker\ for\ WIndows/
|
||||
export BOOT2DOCKER=/usr/local/Cellar/boot2docker/1.6.0/bin
|
||||
fi
|
||||
|
||||
PATH=${PATH}:${BOOT2DOCKER}
|
||||
|
||||
# if there is a C:/Projects folder on this box then I'm obviously using my work computer
|
||||
if [ -d "/c/Projects" ]; then
|
||||
|
|
@ -29,6 +28,7 @@ if [ -d "/c/Projects" ]; then
|
|||
. ~/.work_profile
|
||||
fi
|
||||
|
||||
PATH=${PATH}:${BOOT2DOCKER}
|
||||
export GOBIN=${GOPATH}/bin
|
||||
PATH=${PATH}:${GOBIN}:${GOROOT}/bin
|
||||
|
||||
|
|
@ -50,41 +50,8 @@ shopt -s cdspell # Corrects minor spelling errors when cd-ing
|
|||
set -o vi # Set prompt to vi mode
|
||||
set -o notify # Report status of terminated background jobs immediately
|
||||
|
||||
if [ $OSTYPE = "linux-gnu" ]; then
|
||||
ulimit -n 1000000 unlimited
|
||||
fi
|
||||
|
||||
# Override the Git command
|
||||
git() {
|
||||
cmd=$1
|
||||
shift
|
||||
extra=""
|
||||
|
||||
quoted_args=""
|
||||
whitespace="[[:space:]]"
|
||||
for i in "$@"
|
||||
do
|
||||
quoted_args="$quoted_args \"$i\""
|
||||
done
|
||||
|
||||
cmdToRun="`which git` "$cmd" $quoted_args"
|
||||
cmdToRun=`echo $cmdToRun | sed -e 's/^ *//' -e 's/ *$//'`
|
||||
bash -c "$cmdToRun"
|
||||
if [ $? -eq 0 ]; then
|
||||
# Commit stats
|
||||
if [ "$cmd" == "commit" ]; then
|
||||
commit_hash=`git rev-parse HEAD`
|
||||
repo_url=`git config --get remote.origin.url`
|
||||
commit_date=`git log -1 --format=%cd`
|
||||
commit_data="\"{ \"date\": \"$commit_date\", \"url\": \"$repo_url\", \"hash\": \"$commit_hash\" }\""
|
||||
git-stats --record "$commit_data"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
commits() {
|
||||
printmotd
|
||||
if [ -f `which git-stats` ]; then
|
||||
"git-stats"
|
||||
fi
|
||||
echo ""
|
||||
}
|
||||
|
||||
commits
|
||||
printmotd
|
||||
|
|
|
|||
9
motd
9
motd
|
|
@ -7,12 +7,3 @@ ________/\\\\\\\\\_______/\\\\\_______/\\\\\\\\\\\\_____/\\\\\\\\\\\\\\\_
|
|||
__\///\\\___________\///\\\__/\\\____\/\\\_______/\\\__\/\\\_____________
|
||||
____\////\\\\\\\\\____\///\\\\\/_____\/\\\\\\\\\\\\/___\/\\\\\\\\\\\\\\\_
|
||||
_______\/////////_______\/////_______\////////////_____\///////////////__
|
||||
__/\\\\____________/\\\\_____/\\\\\\\\\___________/\\\\\\\\\__/\\\________/\\\__/\\\\\\\\\\\__/\\\\\_____/\\\__/\\\\\\\\\\\\\\\_
|
||||
_\/\\\\\\________/\\\\\\___/\\\\\\\\\\\\\______/\\\////////__\/\\\_______\/\\\_\/////\\\///__\/\\\\\\___\/\\\_\/\\\///////////__
|
||||
_\/\\\//\\\____/\\\//\\\__/\\\/////////\\\___/\\\/___________\/\\\_______\/\\\_____\/\\\_____\/\\\/\\\__\/\\\_\/\\\_____________
|
||||
_\/\\\\///\\\/\\\/_\/\\\_\/\\\_______\/\\\__/\\\_____________\/\\\\\\\\\\\\\\\_____\/\\\_____\/\\\//\\\_\/\\\_\/\\\\\\\\\\\_____
|
||||
_\/\\\__\///\\\/___\/\\\_\/\\\\\\\\\\\\\\\_\/\\\_____________\/\\\/////////\\\_____\/\\\_____\/\\\\//\\\\/\\\_\/\\\///////______
|
||||
_\/\\\____\///_____\/\\\_\/\\\/////////\\\_\//\\\____________\/\\\_______\/\\\_____\/\\\_____\/\\\_\//\\\/\\\_\/\\\_____________
|
||||
_\/\\\_____________\/\\\_\/\\\_______\/\\\__\///\\\__________\/\\\_______\/\\\_____\/\\\_____\/\\\__\//\\\\\\_\/\\\_____________
|
||||
_\/\\\_____________\/\\\_\/\\\_______\/\\\____\////\\\\\\\\\_\/\\\_______\/\\\__/\\\\\\\\\\\_\/\\\___\//\\\\\_\/\\\\\\\\\\\\\\\_
|
||||
_\///______________\///__\///________\///________\/////////__\///________\///__\///////////__\///_____\/////__\///////////////__
|
||||
|
|
|
|||
Loading…
Reference in New Issue