Merge remote-tracking branch 'ritchie/main'
This commit is contained in:
commit
d56a823ef9
1 changed files with 8 additions and 0 deletions
|
@ -233,6 +233,14 @@ else
|
|||
fi
|
||||
export EDITOR
|
||||
|
||||
# Use nvim if installed.
|
||||
if command -v nvim > /dev/null
|
||||
then
|
||||
export EDITOR="nvim -f"
|
||||
alias vi=nvim
|
||||
alias vim=nvim
|
||||
fi
|
||||
|
||||
# Use root's cache instead of having one for root and one for the user.
|
||||
if [ "$(id -u)" -ne 0 ] && [ -x /usr/bin/dnf ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue