LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2011, 05:09 PM   #1
venom4u31
Member
 
Registered: Oct 2011
Distribution: Debian 6
Posts: 47

Rep: Reputation: Disabled
How do I permanently change my shell prompt?


I have read online that the $PS1, $PS2 and so on variables contain the prompt format. I tried changing those, and their effect was instantly visible. Unfortunately, when I restart the system, the shell prompt returns to its original format.

How do I permanently change the shell prompt?

The system is debian 6.0.
 
Old 11-16-2011, 05:11 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
If you're using bash, then you want to set the variables in your ~/.bashrc file.

http://infohost.nmt.edu/tcc/help/pub...es/bashrc.html, for example
 
1 members found this post helpful.
Old 11-16-2011, 05:34 PM   #3
venom4u31
Member
 
Registered: Oct 2011
Distribution: Debian 6
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Snark1994 View Post
If you're using bash, then you want to set the variables in your ~/.bashrc file.

http://infohost.nmt.edu/tcc/help/pub...es/bashrc.html, for example
Great thanks! Apparently there is a file in /etc/bash.bashrc (for debian) that manages these variables globally. I thought that by setting PS1='bashprompt' would do the trick permanently. Apparently that's not the case.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'd like to change the default shell prompt. lynnevan Linux - General 9 09-08-2011 09:00 AM
passing parameters from a unix shell prompt into a windows cmd.exe prompt nano2 Programming 1 09-01-2009 12:26 PM
Shell scripts unable to permanently change directory after exit ernesto_cgf Linux - General 4 12-21-2006 05:08 PM
how do i change the current prompt in shell? prospekrisal Linux - Newbie 4 07-16-2006 11:35 AM
change the shell prompt ust Linux - Distributions 5 04-28-2005 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration