Merge pull request #76 from antono/master

Be more clever about OS...
pull/72/merge
Travis Swicegood 2011-08-12 08:15:26 -07:00
commit ef1a1bcecb
3 changed files with 24 additions and 8 deletions

View File

@ -1,3 +1,11 @@
#!/bin/bash #!/bin/bash
alias em="open -a emacs" case $OSTYPE in
linux*)
alias em='emacs'
alias e='emacsclient -n'
;;
darwin*)
alias em="open -a emacs"
;;
esac

View File

@ -39,13 +39,17 @@ alias piano="pianobar"
alias ..='cd ..' # Go up one directory alias ..='cd ..' # Go up one directory
alias ...='cd ../..' # Go up two directories alias ...='cd ../..' # Go up two directories
alias ....='cd ../../..' # Go up two directories
alias -- -="cd -" # Go back alias -- -="cd -" # Go back
# Shell History # Shell History
alias h='history' alias h='history'
# Tree # Tree
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" if [ ! -x "$(which tree)" ]
then
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
fi
# Directory # Directory
alias md='mkdir -p' alias md='mkdir -p'

View File

@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
# Textmate case $OSTYPE in
alias e='mate . &' darwin*)
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &' # Textmate
alias e='mate . &'
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
;;
esac