Long commands in bash terminal overwrites my prompt, instead of new line

When I'm in Terminal and I type a long command or something, instead of the Terminal continuing the command onto the next line, it starts overwriting my username@host prompt. Does anyone know how to fix this?

Does it happen in all user accounts? You may have altered your bash shell profiles in some way. To check this, run the following commands, and then post the results of each here (the results should open in a TextEdit window):
cat ~/.bash_profile | open -fe
cat ~/.bashrc | open -fe
cat /etc/profile | open -fe

Similar Messages

  • Terminal problem: Makes a mess of long commands

    Recently my Terminal.app has been unable to handle long commands. Basically what happens is that when I write a command after the prompt that spans more than the rest of the line, instead of continuing on the next line it starts over on the same line. This makes a mess of course, and quickly makes the command illegible. When searching through the command history with the up and down arrow keys, things also get very messy.
    Is this a known problem? Those I have asked say they experience similar things with their Terminal once in a while, but I'm seeing this all the time in my Terminal. Any ideas on how to fix this?

    Delete this file /Users/yourname/Library/Preferences/com.apple.Terminal.plist and see...
    You really should be asking Terminal related questions in the Unix forum
    http://discussions.apple.com/forum.jspa?forumID=735
    -mj

  • Bash: wrapping long command line [SOLVED]

    I'm trying to configure my bash to wrap long command lines.  I am looking for a behaviour similar to tcsh where, at the border of the window,  the command is continued on the next line.  In bash, the command continues at the begining of the same lines wich is messy.  I tried using
    set horizontal-scroll-mode on
    in my ~/.inputrc but the continuation doesn't start at the windows border. I can post screenshots if that would help.
    Thanks.

    putting the line in .bashrc have no effect.
    Here is my .bashrc
    export EDITOR=emacs
    export PAGER=less
    export LESS="-f -r"
    export BROWSER=firefox
    PS1='[33[01;34m]#[33[00m] 33[01;31m]u@H[33[00m]33[01;39m] w $33[00m] '
    # create an xauth key for root user
    umask 377
    /usr/X11R6/bin/xauth extract /tmp/user.xauth $DISPLAY
    umask 022
    #set horizontal-scroll-mode on
    source ~/.aliases
    my .bash_profile
    . $HOME/.bashrc
    my .inputrc
    "e[A": history-search-backward
    "e[B": history-search-forward
    set show-all-if-ambiguous on
    set page-completions off
    set completion-query-items 10000
    set horizontal-scroll-mode on
    The screenshots:
    With tsch (what I'm looking for)
    With set horizontal-scroll-mode off:
    If I continue to press the 'a' key, it overwrite the whole line and wraps at the window border.
    With set horizontal-scroll-mode on:
    It wraps 2 inches before reaching the window border.
    [/img]

  • I have a new iMac running OS 10.9 when I use the Command S shortcut it no longer saves the active document it speaks it instead.

    I have a new iMac running OS 10.9.  When I use the Command S shortcut in any of my apps (numbers, text edit etc), it no longer saves the active document it speaks it instead.  How can I revert to the save shortcut function?

    have you looked in
    system preference->Dictiation & speech if it's assigned there?
    or system preference->accessibility if it's assigned there?

  • Problem under Mac OS X with very long commands

    Hi,
    in one app. I have very long commands, this make problems under mac os x (sdk 1.4.2)
    it works under Lin and Win, only under Mac OS X it wont work like it shoud.
    is there a possibility of arise this "max length" ?
    sample:
    http://matrix.phileon.de/java_mac.html
    thx!
    phileon

    It seems as he didn't like the last entry of the classpathhuh, i always thought of MacOS X as a she..

  • [SOLVED] ... Copy and paste in xwindows into bash terminal?

    Just to make my Archexperience really interesting I've decided to forego the installation of a DE (for now) and I'm using just the Evilwm. So, what do I need to install to get copy and paste to work beween firefox and my bash terminal.
    In my former Fedora install I used the contextual right-click menu. Any suggestions? A wiki search and google didn't find any ready answers...
    Last edited by xtian (2013-09-17 21:59:51)

    xtian wrote:After a while you get tired of trying to make Linux perform like a commercial OS (OSX, Windoz) and you learn to make do with what works.
    You should get tired of expecting linux to work like any other OS.  But if your goal is for it to perform like those, that is also very easy to do.  Follow thisoldman's advice and you will find dozens of clipboard managers that do what you want.

  • What does "/usr/X11/bin/xstub ; exit;" command do in Terminal?

    What does "/usr/X11/bin/xstub ; exit;" command do in Terminal?

    The %U represents a URL. If you drag a URL to the shortcut then it'll open that URL in Firefox.

  • Shortcut "Command + T" opens terminal instead a new tab of finder

    Hi!
    I'm a new member of forum and new user of OS X.
    On my MacBook appeared a strange problem after cleaning OS X (Mavericks) by Onyx:
    When I'm in a Finder window and using shortcut Command+T  appears Terminal window instead a new tab in Finder.
    I tried to reset to the default keyboard shortcuts in System Preferences but it didn't work.
    Has anyone had a similar problem and already has a solution?
    I will be grateful
    BTW sorry for my ungrammatical English

    Try this:
    1) In the address bar, enter''' about:config''' and press '''Enter'''.
    2) In the "'''Filter'''" type '''restriction'''
    3) "browser.link.open_newwindow.restriction" should appear. '''Double-click''' it and enter 0
    That will force everything to go to new tabs instead of Windows.

  • How to vertically align Prompts on the same line in OBIEE

    Can we vertically align "Product Line (Owned)" and "Product Line(Not Owned)" in this Prompt on same vertical line?
    so that "Product Line(Owned)" can start from the same vertical line where "Product Line(Not Owned)" starts
    we tried few options by adding a text element in dashboard and playing with td.GFPFilter
    but couldn't find a solution to it.
    we were looking into this thread
    Dashboard Prompt Alignment
    Currently we have it like this, alignment is not same due to "Not Owned" text being longer than "Owned" text
    "Product Pillar (Owned)"--------------"Product Line (Owned)"---------------------"Product (Owned)"
    "Product Pillar (Not Owned)"--------------"Product Line (Not Owned)"---------------"Product (Not Owned)"
    we want to have it like this,
    "Product Pillar (Owned)"--------------"Product Line (Owned)"-------------"Product (Owned)"
    "Product Pillar (Not Owned)"---------"Product Line (Not Owned)"--------"Product (Not Owned)"

    Hi Rupak,
    I just tried it and it the solution is pretty easy. Just add a text-box to your dashboard holding the following:
    <style>td.GFPFilter {width: 200px}</style>You need to check "Contains HTML markup"
    Regards,
    Stijn

  • Terminal Problems - Can't open a new full size window

    When I open Terminal, I get a tiny little corner of a window that shows only the Red Close window button. All new windows open the same way. I can't enlarge the window by dragging or menu commands. The Terminal is basically worthless in this state. I have tried trashing Prefs, but to no avail.

    Something bad happened to the Monaco font that Terminal needs. Take a look in your /System/Fonts folder, where it should be--have you done anything with font management? Disabled any fonts? Removed some? See this KB article.
    Francine
    Schwieder

  • My iPhone 3Gs is now no longer a recognised device on iTunes after I downloaded the new iTunes with iCloud software, but it does recognise my iPad2??

    My iPhone 3Gs is now no longer a recognised device on iTunes after I downloaded the new iTunes with iCloud software, but it does recognise my iPad2??
    I run both Mac and a PC and have iTunes on both, which has previously recognised my iPhone. I had updated my Mac with the new iTunes software with iCloud and updated my iPad2 just yesterday. I then wanted to do the same with my iPhone today, but my Mac wouldn't recognise the device so I tried it on my PC, which recognised the phone but told me I needed to update my iTunes and this in turn wanted to update my iPhone software. After completing all this and restarting, my iPhone now shows the iTunes icon with the USB plug pointing towards it, obviously wanting me to plug it in to my computer to re-connect with iTunes, but now neither of my computers recognise my iPhone and my PC states an 'Unknown Device'. My Mac doesn't even see it. Can anyone help as I really need to get my phone working?? Thanks

    Hold down the Home and Power button for 20 seconds. And try to update again.
    Also read and follow this:
    http://www.apple.com/support/iphone/assistant/restore/

  • Hi, I have an e-mail account no longer valid, I need to move my contacts to a new e-mail account and delete the old one.  How, help?? Phone is a 3GS

    Hi, I have an e-mail account no longer valid, I need to move my contacts to a new e-mail account and delete the old one.  How, help?? Phone is a 3GS

    So the answer to my question is yes - from an old Exchange account that was provided by a previous employer.
    If so, you can't.
    You can't merge or transfer contacts that were synced over the air with an Exchange account with another account, and the same for syncing the contacts direct with a supported address book app on your computer. This is how most employers want it.

  • I want to add new songs to my ipod.  When I set it up with itunes years ago I had a different computer that I no longer have.  Now it will not let me add new songs to my ipod shuffle without erasing everything that is already on it.  Help!!!

    I want to add new songs to my ipod.  When I set it up with itunes years ago I had a different computer that I no longer have.  Now it will not let me add new songs to my ipod shuffle without erasing everything that is already on it.  Help!!!  Is there any way around this?

    Yes, I was aware of this but the phrase "Any items imported from audio CDs or acquired from other sources will not copy from your device to the iTunes library." is what worries me.  Will this eliminate my Notes, Calendar Events, etc or will it apply mostly just to the music?

  • Video no longer works on iPad. My videos, you tube, Netflix, news casts, nothing works.

    Video no longer works on iPad. My videos, you tube, Netflix, news casts, nothing works.

    Try this and see if it fixes it for you. Close all apps in the recents tray and then reboot the iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of all of the app icons. Tap the home button.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • My computer no longer seesmy 3rd generation ipod nano.  after following the on line directions to re-install I get a message it is ok to discinnect instead of do not disconnect.  how to I get the ipod back onto my computer?

    my computer no longer seesmy 3rd generation ipod nano.  after following the on line directions to re-install I get a message it is ok to discinnect instead of do not disconnect.  how to I get the ipod back onto my computer?

    Hello rh3362,
    I would start with this:
    http://support.apple.com/kb/TS1369
    Hope this helps.
    ~Julian

Maybe you are looking for

  • Need to install ADR in my weblogic server 10.3.6

    Hi, I have installed my Standalone weblogic server in my laptop. And i tried to deploy one of my EAR file ( Developed using Fusion Web application - ADF). It shows some exception and i finally came to know that in need to install the ADR. (ADF Runtim

  • My itunes won't open up

    when i try to open itunes by clicking on the icon a box comes up that says...".....itunes requires Mac OS 10.4.7 or later. For more information on upgrading your computer, visit www.apple.com/macosx ....." Here is some relevant information; .....i wa

  • Problem in converting char * to java objects

    Hi All, When I am trying to compile the following JNI code, I am getting the under-mentioned errors. <code> JNIEXPORT jboolean JNICALL Java_XXXAPI_nativeCheckSomeAccess (JNIEnv *jnv, jobject jobj, jstring fresource, jstring uname){      jboolean acce

  • Passing value from JSP to JApplet

    Hello, I am stuck up with a problem, can anyone please tell me how do i pass a value from a JSP page to a JApplet, and the parameter passed through JSP should be displaed in the JTextArea. It would be kindful if any of you could help. Thanks Sanam

  • Apple I.d. Question

    Does anyone know how I can delete the apple i.d. That pops up when I try to do an app update. It is an old one that has been disabled. I have already created a new one that I use on my iPhone and iTunes and it is currently loaded on my iPad.