Add editor checks
This commit is contained in:
parent
4bd562735e
commit
6b697a4888
15
profile
15
profile
@ -52,7 +52,20 @@ if [[ -f "$HOME/.ssh-sentinel.sh" ]]; then
|
|||||||
source "$HOME/.ssh-sentinel.sh"
|
source "$HOME/.ssh-sentinel.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export EDITOR="nvim"
|
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 l="ls -lah"
|
||||||
alias ll="ls -lh"
|
alias ll="ls -lh"
|
||||||
|
Loading…
Reference in New Issue
Block a user