换了好几回Terminal默认的配色,真是难看哭了,作为一只有生活追求的序媛,当然不能安(zuo)之(yi)若(dai)素(bi)了

1 自定义 Terminal问候语

 sudo pico /etc/motd

在编辑器中输入你想要显示的问候语,输入完成后按 control-x 执行退出,接着输入字母 “y”,回车退出。

2 个性化提示符

vi ~/.bash_profile

加入

export PS1="\u@\h \w$ "

没有好看的 Terminal 怎么能够快乐地写代码

3 多姿多彩

首先确定偏好设置-设置-高级-仿真中选择xterm-256color

下载solarized配色方案,偏好设置-设置,导入设为默认即可

按照让Mac OS X的终端多姿多彩设置其余项

4 grep高亮显示关键字

vi ~/.bash_profile

加入

alias grep='grep --color'

alias egrep='egrep --color'

alias fgrep='fgrep --color'

没有好看的 Terminal 怎么能够快乐地写代码

 

5 Vim语法高亮

vi ~/.vimrc

加入

syntax on

顺便

:set wrap 

 

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2021-08-13
  • 2021-11-15
  • 2021-08-19
  • 2021-09-29
  • 2021-10-19
猜你喜欢
  • 2022-12-23
  • 2022-02-24
  • 2021-10-28
  • 2021-12-22
  • 2021-04-28
  • 2021-10-15
  • 2021-07-12
相关资源
相似解决方案