$ EDITOR=vim bundle open devise$ vim$ echo $EDITOR
$ vim ~/.bashrc
加上这句 export EDITOR=vim
$ . ~/.bashrc$ echo $EDITORvim$ bundle open devise