How do I get bash on OS X Lion to ignore .DS_Store files during tab completion?

前端 未结 2 891
轻奢々
轻奢々 2020-12-28 17:34

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 f

相关标签:
2条回答
  • 2020-12-28 17:56

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

    export FIGNORE="$FIGNORE:DS_Store"

    0 讨论(0)
  • 2020-12-28 17:59

    Add this line to your .bash_profile file:

    export FIGNORE=DS_Store
    
    0 讨论(0)
提交回复
热议问题