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
|
||||
for dir in "$HOME"/[^.]*(/); do
|
||||
[[ ! ${dir:t} =~ " " ]] || continue
|
||||
hash -d ${dir:t}="$dir"
|
||||
hash -d -- ${dir:t}="$dir"
|
||||
done
|
||||
|
||||
# Children of documents
|
||||
|
||||
Reference in New Issue
Block a user