1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-01 14:21:12 +00:00
prezto/modules/directory/functions/command_not_found_handler

14 lines
187 B
Plaintext
Raw Normal View History

#
# Changes the directory to the n previous one.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
if [[ "$1" == [[:digit:]]## ]]; then
builtin cd "+$1"
else
return 127
fi