lib/dots/functions.zsh in zsh_dots-0.5.0 vs lib/dots/functions.zsh in zsh_dots-0.5.1

- old
+ new

@@ -19,15 +19,19 @@ # Load the README.md file into mvim as well as the current directory, as defined by the # functionality of the macvim_drawer plugin. Requires macvim_drawer to be installed, # regular MacVim will break with this function. function e() { - if [[ -f "./README.md" ]]; then - mvim README.md - elif [[ -f "./README.rdoc" ]]; then - mvim README.rdoc + if [[ $EDITOR == 'mvim']] && [[ $DRAWER == true ]]; then + if [[ -f "./README.md" ]]; then + mvim README.md + elif [[ -f "./README.rdoc" ]]; then + mvim README.rdoc + else + mvim + fi else - mvim + $EDITOR fi } # Set the title of the iTerm window. function set_title() {