ChangingThePresent
The Few, The Proud, The Pradipta 416
My Resume
Web DOC PDF
RTF ODT TXT
powered by emurse

quick tip: bash profile

bryan / 13.Mar.2008

If you use a Unix-like development environment, this may be helpful. Here's some snippets from my .bash_profile on Leopard.


function wo {
  cd "/Users/bryan/apps/$1";
}
function devcon {
 eval script/console $1;
}
function testcon {
 eval "script/console test $1";
}
function prodcon {
 eval "script/console production -s $1";
}
function prodcon_live {
 eval "script/console production $1";
}

So I get something to go to a certain project I'm working on and use the console quickly.


bash:~> wo merb-core
bash:/Users/bryan/apps/lazy_developer> devcon
>>

It saves a lot of typing.

Sorry, comments are closed for this article.

back to top

micro theme by seaofclouds, and powered with Mephisto Hosting by hostingrails.com