mac上的ls不支持 --ignore 选项解决方法:brew install coreutils然后在 .bash_profie 添加alias ls="gls --color --ignore='*.pyc'"