mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
use textmate as default editor, set IDEA_JDK
This commit is contained in:
parent
3ec7dfb0e5
commit
2aab2de99a
2 changed files with 9 additions and 6 deletions
|
|
@ -23,10 +23,12 @@ alias git-authors='git shortlog -s -n'
|
|||
|
||||
# rails
|
||||
alias r="rails"
|
||||
alias a='autotest -rails'
|
||||
alias tlog='tail -f log/development.log'
|
||||
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
|
||||
alias %=' '
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
# export PS1='%3~$(git_info_for_prompt)%# '
|
||||
# fi
|
||||
|
||||
if (( ${+commands[mvim]} ));then
|
||||
export EDITOR='mvim'
|
||||
elif (( ${+commands[mate]} ));then
|
||||
export EDITOR="mate"
|
||||
if (( ${+commands[mate]} ));then
|
||||
export EDITOR='mate'
|
||||
elif (( ${+commands[mvim]} ));then
|
||||
export EDITOR="mvim"
|
||||
else
|
||||
export EDITOR='vim'
|
||||
fi
|
||||
|
|
@ -26,6 +26,7 @@ if [[ -e /usr/libexec/java_home ]]; then
|
|||
export JAVA_HOME="`/usr/libexec/java_home`"
|
||||
fi
|
||||
|
||||
export IDEA_JDK="$JAVA_HOME"
|
||||
fpath=(~/.zsh/functions $fpath)
|
||||
|
||||
autoload -U ~/.zsh/functions/*(:t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue