1

My Xterm always print:

  tony@tony-ThinkPad-Edge-E540:~$   

I want it to print only

 ~$

How can I do that?

Yun-Chih Chen
  • 111
  • 1
  • 6

1 Answers1

0

Xterm also read .bashrc when starting. Add this line to your ~/.bashrc:

PS1=~$\ 

And restart xterm.

chaos
  • 27,506
  • 12
  • 74
  • 77