Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show only hidden files #1180

Closed
faxotherapy opened this issue Apr 16, 2023 · 1 comment
Closed

Show only hidden files #1180

faxotherapy opened this issue Apr 16, 2023 · 1 comment

Comments

@faxotherapy
Copy link

faxotherapy commented Apr 16, 2023

When listing hidden files, I'm most interested by listing hidden files only, instead of listing hiden files with non-hidden files. The trick I use is appending .??* as a further argument, e.g.: exa -lagh --icons .??*

However, it only works for listing the current directory. I can't do, e.g. exa -lagh --icons .??* ~/

@eggbean
Copy link

eggbean commented Apr 16, 2023

You can use the -d switch to view directories as files, so that the content don't get listed as well. You need to put your glob pattern after the path, as part of it. This is the same with ls.

eg.

To view hidden files in the current directory: exa -laghd --icons .*

...in the parent directory: exa -laghd --icons ../.*

--in any directory: exa -laghd --icons <PATH>/.*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants