[英]How do I get bash on OS X Lion to ignore .DS_Store files during tab completion?
I have lots of directories with a single file in them.我有很多目录,其中只有一个文件。 The presence of.DS_Store files makes filename completion a little awkward.
.DS_Store 文件的存在使文件名完成有点尴尬。 How do I tell bash to ignore.DS_Store files when I hit tab?
当我点击选项卡时,如何告诉 bash 忽略.DS_Store 文件?
Add this line to your .bash_profile
file:将此行添加到您的
.bash_profile
文件中:
export FIGNORE=DS_Store
A better method is to also exclude the other things that might already be in FIGNORE using更好的方法是排除其他可能已经在FIGNORE中使用的东西
export FIGNORE="$FIGNORE:DS_Store"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.