linux环境变量设置
- PATH
在.bash_profile里修改
向PATH中添加几个目录export PATH=$PATH:/opt/anaconda/bin:/opt/anaconda/condabin - PS1
在/etc/bash.bashrc或者~/.bashrc里面修改
PS1='`a=$?;if [ $a -ne 0 ]; then a=" "$a; echo -ne "\[\e[1A\e[$((COLUMNS-2))G\e[31m\e[1;41m${a:(-3)}\]\[\e[0m\e[7m\e[2m\r\n\]";fi`${debian_chroot:+($debian_chroot)}\[\e[1;33m\]\u\[\e[1;31m\]@\[\e[1;35m\]\h\[\e[1;32m\][\t]\[\e[1;31m\]:\[\e[1;36m\]\w\[\e[1;34m\]\$\[\e[0;39m\]'