Permalink
Browse files

CDPATH and ri fallback

  • Loading branch information...
1 parent 8dd978c commit aaab7e4dba10588763ef7174d4c07c48aa7ca4e8 @sshaw committed Aug 31, 2013
Showing with 5 additions and 1 deletion.
  1. +1 −0 bash_profile
  2. +4 −1 bashrc
View
@@ -1,6 +1,7 @@
[ -s ~/.bashrc ] && source ~/.bashrc
+export CDPATH=$HOME
export PS1="\w >"
export GOROOT=/usr/local/go
export GREP_OPTIONS=--color
View
5 bashrc
@@ -159,7 +159,10 @@ ri()
open -a Opera "$url"
else
opera "$url" &
- fi
+ fi
+
+ # Fallback if command failed
+ [ $? -ne 0 ] && command ri "$@"
}
# rm empty directories

0 comments on commit aaab7e4

Please sign in to comment.