Always edit files in a new window, and make EDITOR & VISUAL wait
This commit is contained in:
parent
2aa4c28c0b
commit
16f21f07a1
1 changed files with 5 additions and 2 deletions
7
zshrc
7
zshrc
|
|
@ -45,7 +45,10 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
if command_exists vim; then
|
||||
if command_exists code; then
|
||||
export EDITOR="code -nw"
|
||||
export VISUAL="code -nw"
|
||||
elif command_exists vim; then
|
||||
export EDITOR="vim"
|
||||
export VISUAL="vim"
|
||||
else
|
||||
|
|
@ -190,7 +193,7 @@ prompt sjs
|
|||
# --------------------------------
|
||||
alias bgd='bg; disown %1'
|
||||
alias cp='nocorrect cp' # don't correct spelling for 'cp'
|
||||
alias e='code'
|
||||
alias e='code -n'
|
||||
alias ez="$EDITOR ~/.zshrc && source ~/.zshrc"
|
||||
|
||||
alias mkdir='nocorrect mkdir' # don't correct spelling for 'mkdir'
|
||||
|
|
|
|||
Loading…
Reference in a new issue