LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04: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, 04:11 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
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, 04: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



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 08:00 AM
passing parameters from a unix shell prompt into a windows cmd.exe prompt nano2 Programming 1 09-01-2009 11:26 AM
Shell scripts unable to permanently change directory after exit ernesto_cgf Linux - General 4 12-21-2006 04:08 PM
how do i change the current prompt in shell? prospekrisal Linux - Newbie 4 07-16-2006 10:35 AM
change the shell prompt ust Linux - Distributions 5 04-28-2005 03:26 PM

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

All times are GMT -5. The time now is 06:10 AM.

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
Open Source Consulting | Domain Registration