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