How do I get bash on OS X Lion to ignore .DS_Store

2020-02-21 04:30发布

I have lots of directories with a single file in them. The presence of .DS_Store files makes filename completion a little awkward. How do I tell bash to ignore .DS_Store files when I hit tab?

2条回答
The star\"
2楼-- · 2020-02-21 04:48

A better method is to also exclude the other things that might already be in FIGNORE using

export FIGNORE="$FIGNORE:DS_Store"

查看更多
Anthone
3楼-- · 2020-02-21 04:54

Add this line to your .bash_profile file:

export FIGNORE=DS_Store
查看更多
登录 后发表回答