zsh:nameddirs: Pass hash args behind --

Prevent errors for directories that start with a dash.
This commit is contained in:
2023-06-07 10:47:55 +02:00
parent d85dd89416
commit 613d3a572a

View File

@@ -4,7 +4,7 @@
# Children of HOME
for dir in "$HOME"/[^.]*(/); do
[[ ! ${dir:t} =~ " " ]] || continue
hash -d ${dir:t}="$dir"
hash -d -- ${dir:t}="$dir"
done
# Children of documents