Friday, November 6, 2009

Making gnome-terminal start in home directory

I'd ran across this problem when running OpenBox, I think. The terminal would open in odd directories. After installing Ubuntu 9.10, the Gnome terminal would always open in / rather than in my home directory. Since terminal defaults to using bash as the shell, the fix is easy enough:

  1. Open ~/.bashrc in your favorite text editor.
  2. At the very bottom add this line: cd ~
  3. Save
Now every time you open a terminal, the starting directory will be your home directory.

No comments: