Also don't match the root directory (#216)
besides the `$HOME` directory.
A `z /` call will cd to the root directory anyway, because of how the
code handles completion:
# if we hit enter on a completion just go there
case "$last" in
# completions will always start with /
/*) [ -z "$list" -a -d "$last" ] && builtin cd "$last" && return;;
esac
This commit is contained in:
1 parent
61b5c5be69
commit
574f64b84e
1 file changed
+2
-2
Reference in new issue
Block a user