参考网址:https://segmentfault.com/q/1010000000653503

显示隐藏文件

 

defaults write com.apple.Finder AppleShowAllFiles YES

 

编辑.bash_profile

加入

 

export CLICOLOR=1
export LSCOLORS=gxfxcxdxbxegedabagacad
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
export TERM=xterm-color

 

即图片中的代码(不知道为神马,直接写的显示会有问题):

Mac中iterm2显示彩色

然后

 

source .bash_profile

 

 

但是设置完按住command键就不能点击文件进行编辑了。

 

相关文章:

  • 2022-02-25
  • 2021-04-08
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-12-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-09-16
  • 2022-12-23
相关资源
相似解决方案