1
0
Fork 0

bashrc: export EDITOR

This commit is contained in:
Pratham Patel 2024-02-22 18:35:31 +05:30
parent 2abc84caff
commit 6b2aa44e21
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,7 @@ if command -v batcat > /dev/null; then
fi
if command -v nvim > /dev/null; then
EDITOR=nvim
alias e="$(command -v nvim)"
if command -v vim > /dev/null; then
alias vvim="$(command -v vim)"
@ -196,11 +197,14 @@ if command -v nvim > /dev/null; then
fi
alias vim="$(command -v nvim)"
elif command -v vim > /dev/null; then
EDITOR=vim
alias e="$(command -v vim)"
elif command -v vi > /dev/null; then
EDITOR=vim
alias e="$(command -v vi)"
alias vim="$(command -v vi)"
fi
export EDITOR
# PS1 setup
PS0="\t\n" # display time in HH:MM:SS format