Currently my command line prompt looks like this nuve@nuve-Inspiron-5547:~$ but I want to change it Azer's Terminal:"Path of current directory". How can I do this? I need exact code line to add to bashrc file.
Asked
Active
Viewed 1,182 times
1
muru
- 193,181
- 53
- 473
- 722
Azer Shukurzade
- 11
- 2
-
There's an answer to the linked question which shows exactly how to put the current working directory at the end of the prompt. – kos Feb 11 '16 at 12:53
1 Answers
0
Follow this step ;
- Open the terminal
- If you don't have a
.bashrcfile in your$HOME(/home/<username>) , make it with type this commandtouch $HOME/.bashrc - If you have it, open it with text editor like nano, etc.
add this script in your .bashrc
PS1='[ \h \W]\$ 'To make your hostname such as you want open file
/etc/hostnamewithsudosudo nano /etc/hostnameRemove previous hostname and add new hostname which you want in this file
Azer's TerminalIf you have finish , logout or reboot your system to make it affect .
muru
- 193,181
- 53
- 473
- 722
Drajat Hasan
- 303
- 1
- 7
