config --global core.editor "webstorm --wait"
config --global core.editor "code --wait"
EDITOR="webstorm --wait" git rebase -i sha1hash
EDITOR="code --wait" git rebase -i sha1hash
On unix-like OS, put this into your ~/.profile
:
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then # SSH mode
export EDITOR='vim'
else # Local terminal mode
export EDITOR='webstorm --wait'
fi
export VISUAL="$EDITOR"