bash shell configuration

来源:互联网 发布:官方经纬度定位软件 编辑:程序博客网 时间:2024/06/15 14:20

Note: Mac OS / bash

  1. config file : bash_profile and bashrc
  2. system config file : /etc/bashrc
    设置了PS1变量,$PS1是用来配置命令行提示符的格式的。
    如:
    \h : machine
    \u : user
    \W : path
    \w : path
    \t : time

  3. 用户可以在自己的home目录下配置自己的bash_profile或者basic文件。记得source自己的配置文件。

  4. ls color setting:
    export LSCOLORS=exfxcxdxbxegedabagacad

原创粉丝点击