~skiqqy/.dotfiles

8cd533ce5470d34b9d9f08355b801d087e32a236 — Stephen Cochrane 3 months ago f860123
Copied func over
1 files changed, 15 insertions(+), 0 deletions(-)

M miscfiles/bash/.bashrc_1
M miscfiles/bash/.bashrc_1 => miscfiles/bash/.bashrc_1 +15 -0
@@ 106,6 106,21 @@ up ()
	cd $d
}

# In most (if not all) of my projects, I have a run.sh starter script,
# this function lets me avoid having to type $ ./run.sh, if no run.sh
# script is found, and there is a program with the name `run` in your
# $PATH, run that function instead.
oldrun="$(command -v run)"
run()
{
	if [ -f run.sh ]
	then
		./run.sh "$@"
	else
		[ -n "$oldrun" ] && "$oldrun" "$@"
	fi
}

# get current status of git repo
function parse_git_dirty {
	status=`git status 2>&1 | tee`