待完善、。。bash环境配置:配置文件,生效范围划分,存在两类:全局配置:/etc/profile,/etc/profile.d/*.sh/etc/bashrc个人配置:~/.bash_profile~/.bashrc按功能划分,存在两类:profile类:为交互式登录的shell提供配置/etc/profile,/etc/profile.d/*.sh~/.bash_profile功..
分类:
系统相关 时间:
2015-09-14 12:26:03
阅读次数:
193
Linux修改Shell命令提示符及颜色1. Linux登录过程中加载配置文件顺序:/etc/profile → /etc/profile.d/*.sh → ~/.bash_profile → ~/.bashrc → [/etc/bashrc]可查看默认的~/.bashrc文件如下:[root@~/...
分类:
系统相关 时间:
2015-09-11 23:33:00
阅读次数:
343
gr2rg(){
??perl?-ne?‘s/
??(\033\[(\d+;)*[34])([12])
??((;\d+)*m)
??/$1.(3-$3).$4/xge;
??print‘?$*
} 把上面几行加入 .bash_profile 里面,实现红绿互换 -bash-3.2# echo -e "\e[31mRED\e[0m" ...
分类:
其他好文 时间:
2015-09-09 11:41:46
阅读次数:
180
打开终端需要打开配置文件(注意这里不是bash_profile而是 .bash_profile,我开始少了".")如果bash_profile文件不存在,就会自动创建,然后需要输入以下内容:然后保存退出,然后输入source ~/.bash_profile使得这个文件生效。然后退出终端重新运行,输入...
分类:
系统相关 时间:
2015-09-09 06:15:12
阅读次数:
241
mac里设置环境变量1---在用户当前目录下面的.bash_profile文件内;若是没有该文件,则直接创建一个。2----往.bash_profile文件内,添加环境变量 1)可以在编辑器里打开该文件,直接添加类似如下命令: export ANDROID_SDK_HOME= ex...
分类:
系统相关 时间:
2015-09-08 18:29:30
阅读次数:
238
shell变量一、分类 配置文件,生效范围划分,存在两类:全局配置: /etc/profile,/etc/profile.d/*.sh /etc/bashrc 个人配置:~/.bash_profile~/.bashrc按功能划分,存在两类:profile类:为交互式登录的shell提供配置 /etc/profile,/etc/profile.d/*.sh ~/.bash_profile功用:..
分类:
系统相关 时间:
2015-09-08 07:19:00
阅读次数:
171
配置文件,生效范围划分,存在两类:全局配置:/etc/profile,/etc/profile.d/*.sh/etc/bashrc个人配置:~/.bash_profile~/.bashrc按功能划分,存在两类:profile类:为交互式登录的shell提供配置/etc/profile,/etc/profile.d/*.sh~/.bash_profile功用:(1)定义环境变量,例如PA..
分类:
其他好文 时间:
2015-09-08 07:09:02
阅读次数:
124
bash环境配置:配置文件,生效范围划分,存在两类:全局配置:/etc/profile,/etc/profile.d/*.sh/etc/bashrc个人配置:~/.bash_profile~/.bashrc按功能划分,存在两类:profile类:为交互式登录的shell提供配置/etc/profile,/etc/profile.d/*.sh~/.bash_profile功用:(1)定义环..
分类:
其他好文 时间:
2015-09-08 07:04:31
阅读次数:
146
bash环境配置:配置文件,生效范围划分,存在两类:全局配置:/etc/profile,/etc/profile.d/*.sh,/etc/bashrc个人配置:~/.bash_profile,~/.bashrc按功能划分,存在两类:profile类:为交互式登录的shell提供配置/etc/profile,/etc/profile.d/*.sh~/.bash_profile功用:(1)定..
分类:
其他好文 时间:
2015-09-07 07:13:08
阅读次数:
258
bash环境配置配置文件,生效范围划分,存在两类:全局配置:/etc/profile,/etc/profile.d/*.sh/etc/bashrc个人配置:~/.bash_profile~/.bashrc按功能划分,存在两类:profile类:为交互式登录的shell提供配置/etc/profile,/etc/profile.d/*.sh~/.bash_profile功用:(1)定义环境..
分类:
其他好文 时间:
2015-09-07 07:12:05
阅读次数:
242