addet some alias for nvim and neovide

This commit is contained in:
pika 2025-01-02 16:18:11 +01:00
parent 875eedff31
commit ec289469a9

8
.zshrc
View file

@ -434,7 +434,7 @@ _coding_() {
# ─< h stands for HUGO >────────────────────────────────────────────────────────────────── # ─< h stands for HUGO >──────────────────────────────────────────────────────────────────
if command_exists hugo; then if command_exists hugo; then
alias h='hugo' 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 fi
# ─< VSCodium >───────────────────────────────────────────────────────────────────────────── # ─< VSCodium >─────────────────────────────────────────────────────────────────────────────
@ -445,16 +445,14 @@ _coding_() {
# ─< neovide, the best frontend for any neovim-config >─────────────────────────────────── # ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
if command_exists nvim; then if command_exists nvim; then
alias cnvim="command nvim"
if command_exists neovide; then if command_exists neovide; then
if [ -n "$TTY" ]; then
alias nvim="command nvim"
else
alias nvim="neovide --fork" alias nvim="neovide --fork"
fi
fi fi
if [ -d "$HOME/.config/nvchad" ]; then if [ -d "$HOME/.config/nvchad" ]; then
alias nvchad='NVIM_APPNAME="nvchad" nvim' alias nvchad='NVIM_APPNAME="nvchad" nvim'
alias neochad='NVIM_APPNAME="nvchad" neovide --fork'
fi fi
fi fi