Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove second argument from "up" shell function

  • Loading branch information...
commit a70d82518433ea9a089b2a7598c16f6ecf19f455 1 parent a1e321e
@garybernhardt authored
Showing with 2 additions and 7 deletions.
  1. +2 −7 .zshrc
View
9 .zshrc
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.