Home I set .bashrc but my promt looks still the same
Reply: 0

I set .bashrc but my promt looks still the same

user9221 Published in September 19, 2018, 3:40 am

i'm quite new with linux and I want to tweak my terminal prompt. The default is user@user - Thinkpad- T420 ~$. That pretty annoying long. I searched google and I tried my best but it didn't show any difference.

What i have done: echo $PS1

\[\e]0;\u@\h \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\]

locate bashrc


sudo -s Atom /directory

I changed in all files PS1="...." to PS1="hallo". Terminal prompt shows no difference.

Linux Kernel Mint 4.8.0-53-generic

greetings ! B

share|improve this question
  • Have you sourced your .bashrc? – PesaThe Jan 13 at 1:37
  • Hi PesaThe, i'm quite new with linux. What does it mean to "source" the .bashrc? Thank you for your fast answer either! – Bahamas Jan 13 at 1:44
  • source is a builtin that does the following: Read and execute commands from the filename argument in the current shell context. So sourcing ~/.bashrc executes all commands in your .bashrc, including your desired PS1=something. See manual for more information. – PesaThe Jan 13 at 1:48
  • Thank you PesaThe.Don't get me wrong but I could just type PS1=" hallo" in the terminal and it'll execute my demand and change the prompt. But how can i save changes? – Bahamas Jan 13 at 2:22
  • That's why you need the special file, .bashrc. You put PS1=something to ~/.bashrc and when you invoke new shell, your prompt will be changed. – PesaThe Jan 13 at 2:26

2 Answers 2

active oldest votes
up vote 2 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.348452 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO