Permalink
Browse files

remove second argument from "up" shell function

  • Loading branch information...
1 parent a1e321e commit a70d82518433ea9a089b2a7598c16f6ecf19f455 @garybernhardt committed Jan 16, 2013
Showing with 2 additions and 7 deletions.
  1. +2 −7 .zshrc
View
@@ -91,13 +91,8 @@ python_module_dir () {
#
function up()
{
- if [ "$1" != "" -a "$2" != "" ]; then
- local DIR=$1
- local TARGET=$2
- elif [ "$1" ]; then
- local DIR=$PWD
- local TARGET=$1
- fi
+ local DIR=$PWD
+ local TARGET=$1
while [ ! -e $DIR/$TARGET -a $DIR != "/" ]; do
DIR=$(dirname $DIR)
done

0 comments on commit a70d825

Please sign in to comment.