Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th May 2006, 10:58 AM
kenm_uk Offline
Registered User
 
Join Date: Jul 2005
Location: London
Posts: 86
shell prompt, new line

Hi. I was playing around with the bash_aliases and bashrc options a while back to make a few changes to the behaviour of my shell prompt. Now I have a small problem.

When I type a really long line at the shell prompt, when the command reaches the end-of-the-line it then begins displaying the next characters over top the beginning-of-the-line instead of on a new line below. Of course I can still execute the command as desired but it makes reading and editing the command very difficult.

I have not been able to find any help on this on Google because I do not know what to call this problem. But if anyone knows how I might be able to resume the new-line display of long commands in my shell your help would be greatly appreciated!

Thanks,
Ken
__________________
CentOS5.2 on 2.53GHz P4, 756MB RAM, Motherboard ASUS P4V8X-X
Fedora Core 9 on AMD Phenom 9550 Quad Core, Motherboard Gigabyte GA-MA78G-DS3H, 2x1Gb OCZ PC2-8000 RAM
Reply With Quote
  #2  
Old 29th May 2006, 12:12 PM
InKo's Avatar
InKo Offline
Registered User
 
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637
hi kenm_uk,

i also had that problem using FC4 sometimes but dont now have it in CentOS. so I would think it is either a bug in bash or wrong settings (although I wasn't able to find it).

for a long line at the shell prompt you can use \

for example:
$ cd ;\
> vi \
> .bashrc
__________________
The software required «Windows 98 or better», so I installed Linux.
Reply With Quote
  #3  
Old 30th May 2006, 12:32 PM
kenm_uk Offline
Registered User
 
Join Date: Jul 2005
Location: London
Posts: 86
InKo,
Thanks for your reply. I think I have paritally found the answer. Several weeks ago I added to my bash_aliases file the line:
Code:
#PS1='\e[31m[\u@\h \W \! \#]\e[34m$\e[0m '
in order to change the color of my bash prompt which is what seems to have caused the problem. Since removing this line, long commands at the bash prompt now wrap to a new line correctly.

So my question is, where do I change the appearance of my bash prompt without messing up the wrap-to-new-line functionality?

Thanks,
Ken
__________________
CentOS5.2 on 2.53GHz P4, 756MB RAM, Motherboard ASUS P4V8X-X
Fedora Core 9 on AMD Phenom 9550 Quad Core, Motherboard Gigabyte GA-MA78G-DS3H, 2x1Gb OCZ PC2-8000 RAM
Reply With Quote
  #4  
Old 30th May 2006, 12:47 PM
InKo's Avatar
InKo Offline
Registered User
 
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637
hi kenm_uk,

your entry was not really correct.

there is a lot of bash tutorials in the web, for example:
http://www.hypexr.org/bash_tutorial.php

I would not explain it better than there!
__________________
The software required «Windows 98 or better», so I installed Linux.
Reply With Quote
Reply

Tags
line, prompt, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Colorful shell prompt. jimbux Guides & Solutions (No Questions) 4 17th June 2011 07:41 AM
Customize Shell Prompt Malachai Using Fedora 3 19th December 2006 11:54 PM
At the shell prompt?? Beepa Using Fedora 4 29th May 2006 03:50 PM
Root prompt gone from Shell - Konsole kruser Using Fedora 2 1st September 2005 12:44 AM
edit file in shell-prompt yolk Using Fedora 2 14th January 2005 03:07 PM


Current GMT-time: 14:18 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat