变量[^_^][T_T]
source .bashrc
get_ps1()
{
if [ "$?" = "0" ]
then
#we're on the system console or maybe telnetting in
export PS1="[^_^] \h \W\\$ "
else
#we're not on the console, assume an xterm
export PS1="[T_T] \h \W\\$ "
fi
}
PROMPT_COMMAND=get_ps1

相关文章:

  • 2021-06-09
  • 2021-09-10
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
猜你喜欢
  • 2022-01-18
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
相关资源
相似解决方案