export editor for code

This commit is contained in:
Gaetan Semet 2018-03-26 21:23:24 +02:00
commit 2eac82ac79
2 changed files with 5 additions and 2 deletions

View file

@ -1 +0,0 @@
/home/renault/Projects/dev-tools/oh-my-zsh

View file

@ -106,11 +106,15 @@ if [ -z "$LANG" ]; then export LANG=en_US.utf8; fi
[ -f $HOME/.profile ] && source $HOME/.profile
[ "$TERM" = "xterm" ] && TERM="xterm-256color"
if [[ "$TERM" == "xterm-256color" ]]; then
export EDITOR=code
else
export EDITOR='vim'
fi
source $ZSH/oh-my-zsh.sh
# Enviroment variables overwrite
export EDITOR='vim'
export LESS='-RX'
[ "$TERM" = "xterm-256color" ] && export EDITOR='code'