Skip to content

How to hide certain dotfiles like .gitignore .DS_Store etc. but not others #1585

Closed Answered by joelim-work
GeordyJ asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of using set hidden to forcefully show hidden files, you can configure the hiddenfiles option to define what should be considered as a hidden file.

The following will treat .DS_Store and files starting with ._ as hidden:

set hidden false  # this is the default already

set hiddenfiles '.DS_Store:._*'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GeordyJ
Comment options

Answer selected by GeordyJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants