1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # editor_select.zprofile: Setup $EDITOR for the "best" available editor
4 if [[ -z "$EDITOR" ]]; then
5 for editor in atom mate subl vim nano joe vi; do
6 if [ -n "$commands[$editor]" ]; then
7 EDITOR="$commands[$editor]"
14 case "$(basename "$EDITOR")" in
16 EDITOR="$EDITOR --wait"
20 if [ -n "$EDITOR" ]; then
22 alias zshenv="$EDITOR ~/.zshenv"