customising terminal startup
Preston Kutzner
shizzlecash at gmail.com
Mon Apr 20 21:49:33 UTC 2009
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
More information about the ubuntu-users
mailing list