1
我目前的bash PS1如下:如何修改暢達 '源激活' PS1行爲
bldred='\e[1;31m' # Red
bldcyn='\e[1;36m' # Cyan
bldwht='\e[1;37m' # White
txtrst='\e[0m' # Text Reset - Useful for avoiding color bleed
export PS1="\n\[$bldred\]\u\[$txtrst\]@\[$bldwht\]\h\[$txtrst\]:\[$bldcyn\]\w\[$txtrst\]$ "
但是,在運行:
source activate <env-name-here>
默認情況下,告訴conda
預先設置env-name
我PS1
:
(<env-name-here>)
[email protected]:fullpath$
有沒有辦法告訴conda
在我的PS1
之內插入env-name
,而不是在換行符之後?
我根本不知道'conda',但是你能不能把它傳遞給字符串' \ n',並從PS1中刪除'\ n'? –
Aaron