From 0863c224e87391e25914d24e6347814f89bef197 Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Wed, 24 Jan 2018 14:53:29 +0100 Subject: [PATCH] vscode default editor in xterm --- templates/zshrc-linux.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/zshrc-linux.zsh b/templates/zshrc-linux.zsh index 016335e72..8f144b888 100644 --- a/templates/zshrc-linux.zsh +++ b/templates/zshrc-linux.zsh @@ -77,6 +77,8 @@ source $ZSH/oh-my-zsh.sh export EDITOR='vim' export LESS='-RX' +[ "$TERM" = "xterm-256color" ] && export EDITOR='code' + unsetopt correctall ### Added by the Heroku Toolbelt and user local bin