addet some alias for nvim and neovide
This commit is contained in:
parent
875eedff31
commit
ec289469a9
1 changed files with 3 additions and 5 deletions
8
.zshrc
8
.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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue