From 79f207a31c3d1fd6a2ba7d33200888efaef65160 Mon Sep 17 00:00:00 2001 From: pika Date: Tue, 21 May 2024 10:53:49 +0200 Subject: [PATCH] minor changes --- config.fish | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/config.fish b/config.fish index 7443f92..4a02aea 100644 --- a/config.fish +++ b/config.fish @@ -197,37 +197,22 @@ else end -# ─< z stands for Zoxide >────────────────────────────────────────────────────────────────── -if command -v zoxide >/dev/null 2>&1 - zoxide init fish | source - set -a toolbox " z is using $(which zoxide) [cd] -" -else - set -a warnings " zoxide -" - end # ─< g stands for git >───────────────────────────────────────────────────────────────────── if command -v git >/dev/null 2>&1 alias g='git' alias gc='git clone' alias gs='git status' + alias gsu='git submodule update --recursive' alias ga='git add' alias gcm='git commit' alias gp='git pull --recurse-submodule=on-demand' - set -a toolbox " g is using $(which git) -" -else - set -a warnings " git -" end # ─< fastfetch >──────────────────────────────────────────────────────────────────────────── if command -v fastfetch >/dev/null 2>&1 alias ff='fastfetch' alias clearff='command clear & fastfetch' - set -a toolbox " ff is using $(which fastfetch) -" # ─< check for fastfetch module-existance >───────────────────────────────────────────────── command fastfetch --config os >/dev/null 2>&1 # ─< check the status >───────────────────────────────────────────────────────────────────── @@ -250,13 +235,15 @@ if command -v nmap >/dev/null 2>&1 alias sv='scanvuln' alias portscan='sudo nmap -sT' alias ps='portscan' - set -a toolbox " nmap is using $(which nmap) [needs sudo] - sv | 'nmap --script vuln' | vulnerabilityscan - ps | 'nmap -sT' | portscanner -" end -# ───────────────────────────────────────< functions >───────────────────────────────────── +# ────────────────────────────────────────< functions >───────────────────────────────────── +# ─< z stands for Zoxide >────────────────────────────────────────────────────────────────── +if command -v zoxide >/dev/null 2>&1 + zoxide init fish | source +end + +# ─< starship >───────────────────────────────────────────────────────────────────────────── if command -v starship >/dev/null 2>&1 function starship_transient_prompt_func starship module character