From ec289469a99adb74498e111d4ca580ca68c0e4d7 Mon Sep 17 00:00:00 2001 From: pika <67532734+pik4li@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:18:11 +0100 Subject: [PATCH] addet some alias for nvim and neovide --- .zshrc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index 08f4800..2a4cc97 100644 --- a/.zshrc +++ b/.zshrc @@ -434,7 +434,7 @@ _coding_() { # ─< h stands for HUGO >────────────────────────────────────────────────────────────────── if command_exists hugo; then alias h='hugo' - alias hs='hugo server -D --noHTTPCache --disableFastRender ' # --bind "$(get_ip)"' + alias hs='if [ -d ./public ]; then; echo "found public folder, cleaning it.." && command rm -rf ./public && hugo server -D --noHTTPCache --disableFastRender; else; hugo server -D --noHTTPCache --disableFastRender; fi' # --bind "$(get_ip)"' fi # ─< VSCodium >───────────────────────────────────────────────────────────────────────────── @@ -445,16 +445,14 @@ _coding_() { # ─< neovide, the best frontend for any neovim-config >─────────────────────────────────── if command_exists nvim; then + alias cnvim="command nvim" if command_exists neovide; then - if [ -n "$TTY" ]; then - alias nvim="command nvim" - else alias nvim="neovide --fork" - fi fi if [ -d "$HOME/.config/nvchad" ]; then alias nvchad='NVIM_APPNAME="nvchad" nvim' + alias neochad='NVIM_APPNAME="nvchad" neovide --fork' fi fi