LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-03-2004, 06:28 AM   #1
fredgt
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Suse 9.1 Pro / Gentoo
Posts: 114

Rep: Reputation: 15
Editing properties of your terminal/shell ?


I was wondering on how i can edit the properties of my shell or terminal whatever you want to call it.
Now my shell shows the complete path to the directory i,m working in of the complete path starting from my home directory but this sometimes can be e very long string so how can i edit it so it only shows the last directory your working in or a maximum amount of characters?
I know it's possible somehow but i don't know how, I switched from mandrake to suse and in mandrake it was only showing the last directory.

THX
 
Old 10-03-2004, 06:41 AM   #2
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
Try giving a look in .bashrc directory in your home directory.
 
Old 10-03-2004, 07:26 AM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You can find a list of Bash prompt options here: - look at the "Customization Options" section.

http://www.linuxlookup.com/html/arti...m-prompts.html

Last edited by Skyline; 10-03-2004 at 07:29 AM.
 
Old 10-03-2004, 10:30 AM   #4
fredgt
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Suse 9.1 Pro / Gentoo
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks a combination of the two did the trick.
I only had to edit the PS1 variable.
 
  


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
Editing /etc/DIR_COLORS does not change colours in terminal ethics Linux - General 6 02-27-2014 01:56 AM
Editing files from shell scripts? SirRobbin Linux - Newbie 6 03-23-2004 10:27 AM
Editing Files Via Shell mattsmith999 Linux - General 2 02-15-2004 12:16 PM
Editing stored Terminal commands ShaanAli Linux - Software 2 01-13-2004 07:55 AM
Editing a text file in shell Lotmr Linux - Software 5 06-24-2003 12:12 PM


All times are GMT -5. The time now is 09:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration