zsh:nameddirs: Pass hash args behind --
Prevent errors for directories that start with a dash.
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# Children of HOME
|
# Children of HOME
|
||||||
for dir in "$HOME"/[^.]*(/); do
|
for dir in "$HOME"/[^.]*(/); do
|
||||||
[[ ! ${dir:t} =~ " " ]] || continue
|
[[ ! ${dir:t} =~ " " ]] || continue
|
||||||
hash -d ${dir:t}="$dir"
|
hash -d -- ${dir:t}="$dir"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Children of documents
|
# Children of documents
|
||||||
|
|||||||
Reference in New Issue
Block a user