@@ 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`