From a8d748e12c2412a3ac0da5f47be8555c657c373f Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 12 Sep 2024 08:08:46 +0200 Subject: [PATCH 1/3] changed git status to a fancy one --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 8cba04f..b063baa 100644 --- a/.zshrc +++ b/.zshrc @@ -306,7 +306,7 @@ drweb() { # ─< g stands for GIT >───────────────────────────────────────────────────────────────────── if command_exists git; then alias g="git" - alias gs="git status" + alias gs="git status -sb" alias gm='git checkout main && git merge' alias gc="git clone --recurse-submodule" gcl() { From 75dd21ae31b937bb590a49e48fee692baccd6c40 Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 12 Sep 2024 12:44:27 +0200 Subject: [PATCH 2/3] simplified neovide execution + addet tmux check to nvim --- .zshrc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.zshrc b/.zshrc index b063baa..4cff911 100644 --- a/.zshrc +++ b/.zshrc @@ -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 + +# ─< neovide, the best frontend for any neovim-config >─────────────────────────────────── + if command_exists nvim; then if command_exists neovide; then - alias nvim='neovide --fork' - else - if [ -n "$neovide_path" ]; then - alias nvim="$neovide_path --fork" + if [ -n "$TMUX" ]; then + alias nvim="command nvim" 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 From bf38a714bcca72a28668b17d06223a8ef4314bef Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 12 Sep 2024 15:45:39 +0200 Subject: [PATCH 3/3] addet linutil-dev as an alias for dev linutil by christitustech --- .zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 4cff911..8c884e4 100644 --- a/.zshrc +++ b/.zshrc @@ -80,6 +80,7 @@ _init (){ local zconf="$HOME/.zsh" local zAutosg="$zconf/autosuggestions/zsh-autosuggestions.zsh" local zSynthl="$zconf/syntax-highlighting/zsh-syntax-highlighting.zsh" + local _pluginlist=("$zAutosg" "$zSynthl") # ─< init plugis >──────────────────────────────────────────────────────────────────────── @@ -91,7 +92,7 @@ _init (){ p_has() { if ! command_exists has; then inst_has() { - git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install + git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install && cd $HOME/ && rm -r /tmp/has } echo_info "Installing has" inst_has >/dev/null 2>&1 @@ -127,6 +128,7 @@ _alias(){ # ─< linutil >──────────────────────────────────────────────────────────────────────────── alias linutil="curl -fsSL https://christitus.com/linux | sh" + alias linutil-dev="curl -fsSL https://christitus.com/linuxdev | sh" # ─< telnet (starwars) >──────────────────────────────────────────────────────────────────── if command_exists telnet; then