Only set up environment for the top-level shell, and allow it to be
inherited normally.
A top level shell is usually a login shell, but can also be a
non-interactive, non-login shell in certain cases, such as when
executing an SSH remote command.
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
The detection of lesspipe.sh has to be done after setting PATH as it
could be installed in a non-standard bin directory. For example,
Homebrew installs lesspipe in /usr/local.
The default keymap used in Oh My Zsh is Emacs. As such, the editor
should not be set to Vim. Unfortunately, the editor cannot be set to
Emacs because it is not always installed by default.
Set the default editor to nano.