Mac終端切換到bash后,進(jìn)行命令操作時(shí)報(bào)錯(cuò):
error: invalid character '' in LSCOLORS env var
解決方案:
打開 ~/.bash_profile
在設(shè)置LSCOLORS的地方
將之前的設(shè)置刪除,修改為以下的設(shè)置:
export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad
重新啟用設(shè)置:
source ~/.bash_profile
然后就ok了
參考博客:https://stackoverflow.com/questions/26852343/terminal-error-in-mac