Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
revscat
4y ago
0 comments
Save
Share
FYI the zsh glob for this is `^.*`, e.g.:
echo ^.*
will show all non-dotfiles in the current directory.
0 comments
2 comments · 1 top-level
top
newest
oldest
inshadows
4y ago
· 1 in thread
In my Zsh
echo *
does not expand dotfiles. I guess there's some setopt for that.
revscat
OP
4y ago
You're right. Bored during meeting, go this to work:
echo (*)#.*
This prints all dot files and regular files in the current directory. You do need to have `setopt EXTENDED_GLOB` somewhere in your zsh config.
j
/
k
navigate · click thread line to collapse