Mac 的命令行配置字體顏色


1.在mac命令行終端輸入:

ls -al  查看所有隱藏文件,找到.bash_profile

vi .bash_profile  編輯文件,貼入以下內容並保存

source .bash_profile   刷新文件即時生效

Iterm字體設置
#enables colorin the terminal bash shell export
export CLICOLOR=1

#sets up thecolor scheme for list export
export LSCOLORS=gxfxcxdxbxegedabagacad

#sets up theprompt color (currently a green similar to linux terminal)
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '

#enables colorfor iTerm
export TERM=xterm-256color

#grep 高亮
export GREP_OPTIONS='--color=always' GREP_COLOR='1;35'
#配色結束


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM