aboutsummaryrefslogtreecommitdiff
path: root/home/john
diff options
context:
space:
mode:
Diffstat (limited to 'home/john')
-rw-r--r--home/john/.bash_profile1
-rw-r--r--home/john/.shrc4
2 files changed, 3 insertions, 2 deletions
diff --git a/home/john/.bash_profile b/home/john/.bash_profile
index 938adb7..3987746 100644
--- a/home/john/.bash_profile
+++ b/home/john/.bash_profile
@@ -12,6 +12,7 @@ cmdtitle() {
case "${cmd%% *}" in
safetitle) return ;;
screen) return ;;
+ go) return ;;
ls) return ;;
ll) return ;;
mv) return ;;
diff --git a/home/john/.shrc b/home/john/.shrc
index 39e9dba..b15dfc2 100644
--- a/home/john/.shrc
+++ b/home/john/.shrc
@@ -20,8 +20,8 @@ case "$-" in *i*)
eval name=\$$#
r=`find . -name "$name" -print -exit`
[ -z "$r" ] && { echo "$name" not found 2>&1; return 1; }
- [ -f "$r" ] && name="$(dirname "$r")"
- cd "$name" &&
+ [ -f "$r" ] && r="$(dirname "$r")"
+ cd "$r" &&
{ [ $# -eq 1 ] && return; BASH_COMMAND=$* cmdtitle 2>&-; "$@"; }
}
;;