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