added go to work box.
parent
97c94400ad
commit
e781ed8bd0
12
.bashrc
12
.bashrc
|
|
@ -14,8 +14,7 @@ if [ -f ~/.dev_profile ]; then
|
|||
. ~/.dev_profile
|
||||
fi
|
||||
|
||||
# if there is a C:/Projects folder on this box
|
||||
# then I'm obviously using my work computer
|
||||
# if there is a C:/Projects folder on this box then I'm obviously using my work computer
|
||||
if [ -d "C:/Projects" ]; then
|
||||
. ~/.work_profile
|
||||
fi
|
||||
|
|
@ -30,15 +29,16 @@ if [ -f ~/.bash_aliases ]; then
|
|||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features
|
||||
if [ -f /etc/git_completion ]; then
|
||||
. /etc/git_completion
|
||||
fi
|
||||
|
||||
# enable programmable completion features
|
||||
if [ -f /etc/git_completion ]; then
|
||||
. /etc/git_completion
|
||||
fi
|
||||
# enable programmable completion features
|
||||
if [ -f /etc/git_completion ]; then
|
||||
. /etc/git_completion
|
||||
fi
|
||||
|
||||
# enable programmable completion features
|
||||
if [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
# Setup go paths and source go bin
|
||||
if [ -d "C:/Windows" ]; then
|
||||
if [ -d "/c/Windows" ]; then
|
||||
export WINDOWS="TRUE"
|
||||
export GOPATH="D:/Projects/Programming/Go"
|
||||
export GOROOT="D:/Programs/Go"
|
||||
export GOPATH="/d/Projects/Programming/Go"
|
||||
export GOROOT="/d/Programs/Go"
|
||||
|
||||
export GIT_EDITOR=~/Tools/vim/gvim.exe
|
||||
else
|
||||
export GOPATH="$HOME/../Projects/go"
|
||||
|
|
|
|||
|
|
@ -13,8 +13,14 @@
|
|||
c = clone --recursive
|
||||
# Commit all changes
|
||||
ca = !git add -A && git commit -av -S
|
||||
# commits with gpgsign flag
|
||||
cs = commit -S
|
||||
# commits with gpgsign and inline message flag
|
||||
csm = commit -S -m
|
||||
# Switch to a branch, creating it if necessary
|
||||
go = checkout -B
|
||||
# pull rebase
|
||||
pr = pull --rebase
|
||||
# Show verbose output about tags, branches or remotes
|
||||
tags = tag -l
|
||||
branches = branch -a
|
||||
|
|
|
|||
|
|
@ -4,3 +4,11 @@ if [[ $DEBUG ]] ; then
|
|||
fi
|
||||
|
||||
alias projects='cd /c/Projects'
|
||||
|
||||
if [ -d "/c/Windows" ]; then
|
||||
export GOROOT="/c/Go"
|
||||
export GOPATH="/c/Projects/Go"
|
||||
fi
|
||||
|
||||
export GOBIN=${GOPATH}/bin
|
||||
PATH=${PATH}:${GOBIN}:${GOROOT}/bin
|
||||
|
|
|
|||
Loading…
Reference in New Issue