{bash,zsh}rc: fix the vim alias again?

This commit is contained in:
Aminda Suomalainen 2024-06-07 08:55:24 +03:00
parent 8dc98df80d
commit 890c3c8e43
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 4 additions and 4 deletions

View File

@ -867,12 +867,12 @@ ssh-verify-file() {
if hash nvim 2> /dev/null; then if hash nvim 2> /dev/null; then
vim() { vim() {
echo 'using nvim instead' echo 'using nvim instead'
\nvim "$@" /usr/bin/env nvim "$@"
} }
else else
vim() { vim() {
echo 'nvim not found' echo 'nvim not found'
\vim "$@" /usr/bin/env vim "$@"
} }
fi fi

View File

@ -861,12 +861,12 @@ ssh-verify-file () {
if hash nvim 2>/dev/null; then if hash nvim 2>/dev/null; then
vim() { vim() {
echo 'using nvim instead' echo 'using nvim instead'
\nvim "$@" /usr/bin/env nvim "$@"
} }
else else
vim() { vim() {
echo 'nvim not found' echo 'nvim not found'
\vim "$@" /usr/bin/env vim "$@"
} }
fi fi