mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
export editor for code
This commit is contained in:
parent
7f7413b950
commit
2eac82ac79
2 changed files with 5 additions and 2 deletions
|
|
@ -1 +0,0 @@
|
|||
/home/renault/Projects/dev-tools/oh-my-zsh
|
||||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue