PRIMARY_USER=till if (($+commands[nvim])); then EDITOR=nvim elif (($+commands[vim])); then EDITOR=vim elif (($+commands[vi])); then EDITOR=vi else EDITOR=nano fi # raw and case insensitive LESS=-Ri