ILD

change shell prompt
作者:Yuan Jianpeng 邮箱:yuanjp89@163.com
发布时间:2025-1-7 站点:Inside Linux Development

PS1='\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\$ '

或者不带颜色:

PS1='\u@\h \w\$ '


https://serverfault.com/questions/4889/what-are-some-informative-and-useful-shell-prompts-bash-csh-ksh-etc


Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.