Browse Source

cd use pushd

pull/1/head
10sr 12 years ago
parent
commit
d027d082cd
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      bashrc

+ 14
- 0
bashrc View File

@@ -202,6 +202,20 @@ then
|| complete -o default -o nospace -F _git g || complete -o default -o nospace -F _git g
fi fi


cd(){
if test $# -eq 0
then
pushd ~/
elif test $1 = -
then
local pwd="$PWD"
popd
pushd -n "$pwd" # stack last dir
else
pushd "$@"
fi
}

input(){ input(){
local foo local foo
stty -echo stty -echo


Loading…
Cancel
Save