Lines Matching refs:dir
11 typeset dir="${PWD#$HOME/}"
12 case $dir in
14 dir=\~
17 *) dir=\~/$dir
20 select i in "$dir" "${_push_stack[@]}"
28 typeset dir=
52 else dir=${_push_stack[n]}
55 case $dir in
56 \~*) dir=$HOME${dir#\~}
58 \cd "${dir:-$@}" >| /dev/null || return 1
59 dir=${OLDPWD#$HOME/}
65 case $dir in
67 dir=\~
70 *) dir=\~/$dir
74 _push_stack[_push_top]=$dir
76 2|3) # put $dir on top and shift down by one until top
78 for dir in "$dir" "${_push_stack[@]}"
80 _push_stack[i]=$dir
85 _push_stack[_push_top=_push_top-1]=$dir
94 typeset dir="${PWD#$HOME/}"
95 case $dir in
97 dir=\~
100 *) dir=\~/$dir
103 select dir in "$dir" "${_push_stack[@]}"