simplified neovide execution + addet tmux check to nvim

This commit is contained in:
pika 2024-09-12 12:44:27 +02:00
parent a8d748e12c
commit 75dd21ae31

13
.zshrc
View file

@ -345,19 +345,18 @@ _coding_() {
alias code="codium"
export EDITOR="codium"
fi
# ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
if [ -d "$HOME/.local/share/neovide/" ]; then
if command_exists nvim; then
if command_exists neovide; then
alias nvim='neovide --fork'
if [ -n "$TMUX" ]; then
alias nvim="command nvim"
else
if [ -n "$neovide_path" ]; then
alias nvim="$neovide_path --fork"
else
neovide_path=$(find "$HOME/" -name "*neovide*.appimage" 2>/dev/null)
alias nvim="$neovide_path --fork"
alias nvim="neovide --fork"
fi
fi
fi
# Function to get the IP address
get_ip() {
ip a | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d/ -f1 | head -n 1