cd_to="$(command -p -- pwd -P)"
cd -- "${cd_to-}"
unset cd_to 2>/dev/null || cd_to=''

# cdp() {
#   cd_to="$(command -p -- pwd -P)"
#   if command -p -- test "${PWD-}" != "${cd_to-}"; then
#     command -p -- printf -- 'moving from \342\200\230%s\342\200\231\n' "${PWD-}"
#     cd -- "${cd_to-}" || {
#       command -p -- printf -- 'unable to perform this operation\n'
#       return 1
#     }
#     command -p -- printf -- '       into \342\200\230%s\342\200\231\n' "${cd_to-}"
#   else
#     command -p -- printf -- 'already in unaliased directory '
#     command -p -- printf -- '\342\200\230%s\342\200\231\n' "${PWD-}"
#     return 1
#   fi
#   unset cd_to 2>/dev/null || cd_to=''
# }

