From 242df2f7e5937eb4ccde66158db9d403b1c3209c Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 24 May 2025 14:18:11 +0200 Subject: [PATCH] fixed nv command!!!!! --- .zsh/.aliases.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.zsh/.aliases.zsh b/.zsh/.aliases.zsh index a0f36e4..c57e3f7 100644 --- a/.zsh/.aliases.zsh +++ b/.zsh/.aliases.zsh @@ -99,7 +99,13 @@ if command_exists nvim; then alias cnvim="command nvim" alias nvim="$(choose_nvim)" nv() { - NVIM_APPNAME="$1" command nvim "${@:-2}" + appname="$1" + shift + if [ "$#" -eq 0 ]; then + NVIM_APPNAME="$appname" command nvim + else + NVIM_APPNAME="$appname" command nvim "$@" + fi } if [ -d "$HOME/.config/nvdev" ]; then