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

I set .bashrc but my promt looks still the same

Bahamas
1#
Bahamas Published in 2018-01-13 01:34:08Z

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

    /etc/bash.bashrc
/etc/skel/#.bashrc#
/etc/skel/.bashrc
/etc/skel/.bashrc~
/usr/share/base-files/dot.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/bash.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/dot.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

Eric Wilson
2#
Eric Wilson Reply to 2018-01-13 01:38:54Z
source ~/.bashrc

Your terminal only reads the .bashrc on opening, or when you explicitly source it.

Bahamas
3#
Bahamas Reply to 2018-01-14 03:13:13Z

I fixed it by editing the .bashrc file in my /home/myusername directory. Don't edit the files here /src/skel

You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO