ソースを参照

fix cd

pull/1/head
10sr 11年前
コミット
9b01e90bbc
1個のファイルの変更4行の追加4行の削除
  1. +4
    -4
      bashrc

+ 4
- 4
bashrc ファイルの表示

@@ -216,15 +216,15 @@ cd(){
if test $# -eq 0
then
pushd ~/ >/dev/null
elif ! test -d "$1"
then
echo `basename ${SHELL}`: cd: "$1": No such file or directory 2>&1
return 1
elif test $1 = -
then
local pwd="$PWD"
popd >/dev/null
pushd -n "$pwd" >/dev/null # stack last dir
elif ! test -d "$1"
then
echo `basename ${SHELL}`: cd: "$1": No such file or directory 2>&1
return 1
else
pushd "$1" >/dev/null
fi


読み込み中…
キャンセル
保存