Add editor checks
This commit is contained in:
parent
4bd562735e
commit
6b697a4888
13
profile
13
profile
@ -52,7 +52,20 @@ if [[ -f "$HOME/.ssh-sentinel.sh" ]]; then
|
||||
source "$HOME/.ssh-sentinel.sh"
|
||||
fi
|
||||
|
||||
which nvim &> /dev/null
|
||||
neovim="$?"
|
||||
|
||||
which vim &> /dev/null
|
||||
vim="$?"
|
||||
|
||||
if (( !$neovim )); then
|
||||
export EDITOR="nvim"
|
||||
elif (( !$vim )); then
|
||||
export EDITOR="vim"
|
||||
else
|
||||
export EDITOR="vi"
|
||||
fi
|
||||
|
||||
|
||||
alias l="ls -lah"
|
||||
alias ll="ls -lh"
|
||||
|
Loading…
Reference in New Issue
Block a user