revision/use-command_not_found_handler
parent
c091f71283
commit
8d9ec24335
@ -0,0 +1,13 @@
|
|||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
Loading…
Reference in new issue