Browse Source

temporary fix

pull/1/head
10sr 12 years ago
parent
commit
57b17036aa
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      bashrc

+ 3
- 2
bashrc View File

@@ -219,8 +219,9 @@ cd(){
elif test $1 = - elif test $1 = -
then then
local pwd="$PWD" local pwd="$PWD"
popd >/dev/null
pushd "$pwd" -n >/dev/null # stack last dir
echo $OLDPWD
command cd $OLDPWD
command pushd -n "$pwd" >/dev/null # stack last dir
elif ! test -d "$1" elif ! test -d "$1"
then then
echo `basename ${SHELL}`: cd: "$1": No such file or directory 2>&1 echo `basename ${SHELL}`: cd: "$1": No such file or directory 2>&1


Loading…
Cancel
Save