customising terminal startup
lazer1
lazer1 at blueyonder.co.uk
Mon Apr 20 23:56:56 UTC 2009
On 20-Apr-09, Preston Kutzner wrote:
>On Apr 20, 2009, at 3:33 PM, lazer1 wrote:
>>
>> when I open a terminal on recent Ubuntus (eg 7 and 8)
>>
>>
>> I always begin with the commands:
>>
>>
>> PS1="$ "
>>
>> cd /media/SOMEDRIVE/somedirectory
>>
>>
>> as I dont need to be reminded of the current path as I can find that
>> with
>>
>>
>> pwd
>>
>> and a current path prompt grates on my nerves!
>>
>>
>>
>> and I like to go directly to a project directory.
>>
>>
>> How can I make such commands be done automatically whenever I start
>> a terminal
>> (shell)?
>Your command prompt under Ubuntu is defined in your .bashrc file in
>your home directory. Just look for the "PS1=blah-blah-blah" line.
>You can also put a line in at the end of your .bashrc that will change
>your working directory to your projects directory:
>cd /media/SOMEDRIVE/somedirectory
thanks for the info, its all functioning correctly now!
I put the
PS1='$ '
after the existing PS1 command in case I want to revert to the original
version
More information about the ubuntu-users
mailing list