From 875eedff3126ac27e4b3cfac78c33ebbf2243469 Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 29 Dec 2024 16:59:16 +0100 Subject: [PATCH] addet nvchad config alias --- .zshrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 6d50721..08f4800 100644 --- a/.zshrc +++ b/.zshrc @@ -446,11 +446,15 @@ _coding_() { # ─< neovide, the best frontend for any neovim-config >─────────────────────────────────── if command_exists nvim; then if command_exists neovide; then - # if [ -n "$TMUX" ]; then - # alias nvim="command nvim" - # else + if [ -n "$TTY" ]; then + alias nvim="command nvim" + else alias nvim="neovide --fork" - # fi + fi + fi + + if [ -d "$HOME/.config/nvchad" ]; then + alias nvchad='NVIM_APPNAME="nvchad" nvim' fi fi