mac 配色 mac shell配色 ~/.bash_profile是bash shell中当前登录用户的配置文件.bash是“终端”中默认的shell. alias ls=”ls -G”是给”ls -G”起了一个别名,当执行ls时,就相当于执行了ls -G. CLICOLOR是用来设置是否进行颜色的显示.CLI是Command Line Interface的缩写. LSCOLORS是用来设置当CLICOLOR被启用后,各种文件类型的颜色.LSCOLORS的值中每两个字母为一组,分别设置某个文
原理: ls -G 可显示彩色文件名. 在终端输入: nano ~/.bash_profile 辑器.bash_profile文件,粘贴下面内容: alias cls='tput reset' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias l.='ls -dG .*' alias ll='ls -lG' alias ls='ls -G'
Mac Finder 显示路径和复制路径 学习了:https://www.jianshu.com/p/757f9ffc5acf 设置 defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder 还原 defaults delete com.apple.finder _FXShowPosixPathInTitle;killall Finder