需要编辑文档 “~/.bashrc” 即可:

1 txx@txx:precomp$ vim ~/.bashrc       
2 
3 
4 if [ "$color_prompt" = yes ]; then
5     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
6 else
7     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
8 fi

 

​将两个小写的'w',改成大写的'w'即可;
保存后退出编辑器,
再执行命令
​$ source ~/.bashrc

1 txx@txx:~/sl/code/rulescanengine/precomp$ source ~/.bashrc 
2 txx@txx:precomp$ ls

 

 

 

 

 

相关文章:

  • 2022-01-25
  • 2022-02-15
  • 2021-04-13
  • 2022-12-23
  • 2021-10-28
  • 2021-07-10
  • 2021-07-23
  • 2022-12-23
猜你喜欢
  • 2021-10-31
  • 2022-01-31
  • 2022-12-23
  • 2021-12-13
  • 2021-12-19
  • 2021-09-18
  • 2022-12-23
相关资源
相似解决方案