simplified neovide execution + addet tmux check to nvim
This commit is contained in:
parent
a8d748e12c
commit
75dd21ae31
1 changed files with 7 additions and 8 deletions
15
.zshrc
15
.zshrc
|
@ -345,19 +345,18 @@ _coding_() {
|
||||||
alias code="codium"
|
alias code="codium"
|
||||||
export EDITOR="codium"
|
export EDITOR="codium"
|
||||||
fi
|
fi
|
||||||
# ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
|
|
||||||
if [ -d "$HOME/.local/share/neovide/" ]; then
|
# ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
|
||||||
|
if command_exists nvim; then
|
||||||
if command_exists neovide; then
|
if command_exists neovide; then
|
||||||
alias nvim='neovide --fork'
|
if [ -n "$TMUX" ]; then
|
||||||
|
alias nvim="command nvim"
|
||||||
else
|
else
|
||||||
if [ -n "$neovide_path" ]; then
|
alias nvim="neovide --fork"
|
||||||
alias nvim="$neovide_path --fork"
|
|
||||||
else
|
|
||||||
neovide_path=$(find "$HOME/" -name "*neovide*.appimage" 2>/dev/null)
|
|
||||||
alias nvim="$neovide_path --fork"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Function to get the IP address
|
# Function to get the IP address
|
||||||
get_ip() {
|
get_ip() {
|
||||||
ip a | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d/ -f1 | head -n 1
|
ip a | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d/ -f1 | head -n 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue