<p>I use <a href="http://www.apple.com/macosx/technology/unix.html" title="Apple - Mac OS X Leopard - Technology - UNIX">the standard shell</a> in <a href="http://www.apple.com/macosx/" title="Apple - Mac OS X Leopard">OS X</a> which is <a href="http://en.wikipedia.org/wiki/Bash" title="Bash - Wikipedia, the free encyclopedia">bash</a>. A while back I learned about aliases and got hooked. Now I have <a href="http://www.hypexr.org/bash_tutorial.php#alias" title="BASH Help - A Bash Tutorial">bash aliases</a> all over my workflow.</p>

<p>Some are specific to my work or projects, though most are not. I'm sure some of these could be a little better here and there, but I'm pretty happy with the state of things.</p>

<p>If you have any good ones that I would like send them over in the comments.</p>

<p>So without further Apu, here is my .bash_login contents.</p>

<pre><span class="source source_shell"><span class="comment comment_line comment_line_number-sign comment_line_number-sign_shell"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_shell">#</span> path and shell vars
</span>  <span class="storage storage_modifier storage_modifier_shell">export</span> PATH=<span class="string string_quoted string_quoted_double string_quoted_double_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">"</span>/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:<span class="variable variable_other variable_other_normal variable_other_normal_shell"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_shell">$</span>PATH</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">"</span></span>
<span class="storage storage_modifier storage_modifier_shell">export</span> P4CONFIG=.p4config
<span class="storage storage_modifier storage_modifier_shell">export</span> SVN_EDITOR=<span class="string string_quoted string_quoted_double string_quoted_double_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">"</span>mate -w<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">"</span></span>

<span class="comment comment_line comment_line_number-sign comment_line_number-sign_shell"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_shell">#</span> unix navigating   </span>  alias home=<span class="string string_quoted string_quoted_double string_quoted_double_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">"</span>cd ~<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">"</span></span>   alias la=<span class="string string_quoted string_quoted_single string_quoted_single_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">'</span>ls -la<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">'</span></span>   alias ll=<span class="string string_quoted string_quoted_single string_quoted_single_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">'</span>ls -l<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">'</span></span>   alias ..=<span class="string string_quoted string_quoted_single string_quoted_single_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">'</span>cd ..<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">'</span></span>   alias ...=<span class="string string_quoted string_quoted_single string_quoted_single_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">'</span>cd ../..<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">'</span></span>   alias o=<span class="string string_quoted string_quoted_single string_quoted_single_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">'</span>open .<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">'</span></span>

# rails alias ss=’./script/server’ alias sse=’./script/server -e live’ alias mig=’./script/generate migration’ alias gen=’./script/generate ’ alias scaf=’./script/generate scaffold_resource’ alias con=’./script/console’ alias mod=’./script/generate model’ alias cont=’./script/generate controller’ alias dbm=’rake db:migrate’ alias cl=’rake log:clear’ alias ann=’rake annotate_models’ alias fix=’rake db:fixtures:load’ alias nuke=’rake app:db:nuke’

# misc alias sgi=’sudo gem install’ alias c=”cheat” alias mydb=’mysqladmin -u root create’ alias a=’autotest’ alias comics=’ruby /Users/s/scripts/the_dreaming/new_comics.rb’

# adready alias live=’rake live:data:update’ alias dbml=’rake db:migrate RAILS_ENV=live’ alias adready=’sup; rake db:remigrate; rake db:remigrate RAILS_ENV=live; dbm; rake db:test:prepare; live’

# merb alias mmig=’./script/new_migration’

# textmate alias sub=”mate app config db public test spec” alias subb=”mate app config test spec” alias app=”mate app public test” alias m=”mate” alias e=’mate . &’ alias table=”ruby ~/scripts/table_maker.rb”

# bash profile alias ebash=’mate ~/.bash_login &’ alias rbash=’source ~/.bash_login’

# go to my projects alias work=”cd ~/work” alias ven=”cd ~/work/vendo” alias vent=”cd ~/work/vendo/trunk” alias w3=”cd ~/work/vendo/branches/wave_3” alias w3=”cd ~/work/vendo/branches/wave_4”

# git alias gpl=”git pull”

# svn alias sst=’svn st’ alias sci=’svn ci’ alias scim=’svn ci -m’ alias sad=’svn status | grep β€œ^\?” | awk β€œ{print $2}” | xargs svn add’ alias sup=”svn up” alias srm=”svn rm”

</span></pre>