How can I show only the current directory after the prompt in Ubuntu 10.04

1

I have tried the suggestions here:

How to shorten the no of characters display for the current directory in the prompt

But adding these lines to the .bashrc file had no effect.

Uname -a :

#46-Ubuntu SMP Wed Mar 7 13:47:05 UTC 2012 x86_64 GNU/Linux

codecowboy

Posted 2012-10-16T10:34:03.627

Reputation: 465

Question was closed 2015-05-21T19:10:33.427

What did you add to the .bashrc? Have you started a new shell after changing .bashrc? What is the new prompt? – choroba – 2012-10-16T10:39:50.453

Answers

0

Sorry - the question is already answered here

In the standard .bashrc on Ubuntu (in your home directory), look for the comment 'If this is an Xterm...' and change the PS1 value beneath.

codecowboy

Posted 2012-10-16T10:34:03.627

Reputation: 465