I keep all of my web design work under /var/www/(application_name). Nine times out ten, when I open a terminal, I'm heading to the www folder - cd /var/www. I would love to make that my "home" folder for the terminal, so it would just open there - I know if I ctrl+shift+t to open a new tab it defaults to the same dir, but it would be nice to have the first opened terminal default to there. Is this possible, or is there a better way to go about this?
|
|
|||||
|
|
How do you start your application?
I'm using xUbuntu, and with german translation, so you have to be flexible in adopting this solution for the panel:
I guess for a starter icon on the desktop, the way is similar. For Menu-entries consult your administrator. :) Maybe similar too. |
|||
|
|
I don't run Ubuntu specifically, but here's two things I know you can do in a *NIX environment off the top of my head: Change your home directory in /etc/passwd:
Always cd in your shell configuration (e.g. bashrc):
To be honest I think either of these might produce nasty consequences. If I had to pick one, I would pick the later (i.e. shell config). Your home directory can be referenced by many things, and it might be a bad idea to be arbitrarily changing that. The .bashrc file is only supposed to be sourced on interactive logins, so it should be ok, but in practice, it can be difficult to determine when it is actually sourced. |
|||||
|