Ubuntu Terminal - Removing Display of Current Path

If your like me, you sometimes navigate very deep down a directory tree, and get to a point where every command you write wraps or disappears. This is just plain annoying. Most of the time, I completely ignore the path shown right there and will use the pwd command to show me the full path as this has the bonus effect of easily being copy-pasteable.

    To change how your terminal shows the current path, just find the PS1 part in your .bashrc file (~/.bashrc) and find the part that looks similar to this:
    Replace that section with the following:
    Then all you have to do is change the DISPLAY_OPTION to the number you want indicated by the comments. I have mine set to 3, which shows nothing at all, not event the current directory name.

No comments:

Post a Comment