use textmate as default editor, set IDEA_JDK

This commit is contained in:
Robin Wenglewski 2011-09-29 17:03:01 +02:00
commit 2aab2de99a
2 changed files with 9 additions and 6 deletions

View file

@ -23,10 +23,12 @@ alias git-authors='git shortlog -s -n'
# rails # rails
alias r="rails" alias r="rails"
alias a='autotest -rails'
alias tlog='tail -f log/development.log' alias tlog='tail -f log/development.log'
alias rst='touch tmp/restart.txt' alias rst='touch tmp/restart.txt'
alias bist="bundle install" alias bi="bundle install"
alias bu="bundle update"
alias rake_db_migrate_both="rake db:migrate && rake db:migrate RAILS_ENV=test"
# commands starting with % for pasting from web # commands starting with % for pasting from web
alias %=' ' alias %=' '

View file

@ -4,10 +4,10 @@
# export PS1='%3~$(git_info_for_prompt)%# ' # export PS1='%3~$(git_info_for_prompt)%# '
# fi # fi
if (( ${+commands[mvim]} ));then if (( ${+commands[mate]} ));then
export EDITOR='mvim' export EDITOR='mate'
elif (( ${+commands[mate]} ));then elif (( ${+commands[mvim]} ));then
export EDITOR="mate" export EDITOR="mvim"
else else
export EDITOR='vim' export EDITOR='vim'
fi fi
@ -26,6 +26,7 @@ if [[ -e /usr/libexec/java_home ]]; then
export JAVA_HOME="`/usr/libexec/java_home`" export JAVA_HOME="`/usr/libexec/java_home`"
fi fi
export IDEA_JDK="$JAVA_HOME"
fpath=(~/.zsh/functions $fpath) fpath=(~/.zsh/functions $fpath)
autoload -U ~/.zsh/functions/*(:t) autoload -U ~/.zsh/functions/*(:t)