03f15c4495
[zlogin] zcompare fasd and all functions [fasd] trim non-zsh options [fasd] merge PR #75 from clvv/fasd [fasd] partial merge PR #77 from clvv/fasd This closes #24
8 lines
227 B
Text
8 lines
227 B
Text
# function to execute built-in cd
|
|
if [ $# -le 1 ]; then
|
|
fasd "$@"
|
|
else
|
|
local _fasd_ret="$(fasd -e 'printf %s' "$@")"
|
|
[ -z "$_fasd_ret" ] && return 1
|
|
[ -d "$_fasd_ret" ] && cd "$_fasd_ret" || printf %s\n "$_fasd_ret"
|
|
fi
|