From 890c3c8e43eb04bca92b8f596f4dea165afb8b20 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 7 Jun 2024 08:55:24 +0300 Subject: [PATCH] {bash,zsh}rc: fix the vim alias again? --- rc/bashrc | 4 ++-- rc/zshrc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index e8d6383d..612a648a 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -867,12 +867,12 @@ ssh-verify-file() { if hash nvim 2> /dev/null; then vim() { echo 'using nvim instead' - \nvim "$@" + /usr/bin/env nvim "$@" } else vim() { echo 'nvim not found' - \vim "$@" + /usr/bin/env vim "$@" } fi diff --git a/rc/zshrc b/rc/zshrc index ecce4196..74e32520 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -861,12 +861,12 @@ ssh-verify-file () { if hash nvim 2>/dev/null; then vim() { echo 'using nvim instead' - \nvim "$@" + /usr/bin/env nvim "$@" } else vim() { echo 'nvim not found' - \vim "$@" + /usr/bin/env vim "$@" } fi