mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
{bash,zsh}rc: fix the vim alias again?
This commit is contained in:
parent
8dc98df80d
commit
890c3c8e43
@ -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
|
||||||
|
|
||||||
|
4
rc/zshrc
4
rc/zshrc
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user