- Change for the current terminal instance only
- Terminal# PS1='\u:\W\$ '
- Change permanently
- Terminal# vi ~/.bashrc
- Find the line
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
- Changes needed; of course you can copy a line in case you wanna change back
- Remove '@h\' and replace '\w' with uppercase '\W'
- Save, exit and restart a new terminal
No comments:
Post a Comment