Macos 10.14 个性化设置

install homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


账户密码策略清除:

pwpolicy -clearaccountpolicies

 

1、配置terminal颜色

打开ITerm2终端,执行 vim ~/.bash_profile

贴入以下代码段!

#enables colorin the terminal bash shell export

export CLICOLOR=1

 

#setsup 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

执行source ~/.bash_profile使配置生效。

 

设置vim可配色

 ITerm2终端输入 vim .vimrc

贴入以下代码段!

syntax on

set number

set ruler

set mouse=a

执行source ~/.bash_profile使配置生效。

posted @ 2019-06-21 23:03  黑剑石清  阅读(339)  评论(0编辑  收藏  举报