I put everything I code into ~/Documents/work. Could be called projects, same thing. Anyway, everytime I opened Terminal, I would have to type cd Documents/work. Of course, with tab completion, it’s not so bad. I’m a bit stupid though, and it takes me eons before I added cd ~/Documents/work to the end of my ~/.bash_profile.

Whenever I open a Terminal, I’m really going to start doing something in this folder. Now, why didn’t I think of that earlier? Next: retrain myself to not cd anywhere when I open a new Terminal…

Here’s my full ~/.bash_profile:

 1 #!/usr/bin/sh
 3 # Installed by Git OSX Installer from
 4 # http://code.google.com/p/git-osx-installer/
 5 export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
 6 export ANT_HOME=/usr/share/ant
 7 export JRUBY_HOME=~/Library/Java/JRuby/current
 8 export MYSQL_PATH=/usr/local/mysql
 9 export PATH=~/bin:/opt/local/sphinx/bin:/usr/local/git/bin:$MYSQL_PATH/bin:$PATH:$JRUBY_HOME/bin
10 export MANPATH=/usr/local/git/man:$MANPATH
11 export EDITOR=vim
13 # And this is from:
14 # http://code.google.com/p/git-osx-installer/
15 export PS1='\w$(git branch &>/dev/null; if [ $? -eq 0 ]; then echo " (\[\033[00m\]$(git branch | grep ^*|sed s/\*\ //))"; fi) \$\[\033[00m\] '
17 export VISUALWORKS=~/Applications/vw7.6nc
18 export AWS_ACCESS_KEY_ID= # your AWS access key, for cliaws gem
19 export AWS_SECRET_ACCESS_KEY= # your AWS secret access key, for cliaws gem again
21 # http://www.macosxhints.com/article.php?story=20060502160527780&query=terminal%2Btitle
22 function settitle() { echo -ne "\e]2;$@\a\e]1;$@\a"; }
24 if [ -f ~/.bash_aliases ]; then
25   source ~/.bash_aliases
26 fi
28 cd ~/Documents/work


Your Host

A picture of me

I am François Beausoleil, a Ruby on Rails and Scala developer. During the day, I work on Seevibes, a platform to measure social interactions related to TV shows. At night, I am interested many things. Read my biography.

Top Tags

Books I read and recommend


Projects I work on

Projects I worked on