From fda25dfc7bf90e911253ce824b6809486a49194c Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 22 May 2024 18:43:38 +0200 Subject: [PATCH] testing.. --- config.fish | 6 ++++-- functions/git.fish | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.fish b/config.fish index f211b1a..030d447 100644 --- a/config.fish +++ b/config.fish @@ -8,8 +8,10 @@ end # │ If you have any questions, check the git page at: │ # │ https://git.k4li.de/pika/fish.git │ # ╰───────────────────────────────────────────────────╯ -# ─────────────────────────────────< Environment-Variables >─────────────────────────────── +# ────────────────────────────────────────< sources >────────────────────────────────────── +source ./functions/git.fish +# ─────────────────────────────────< Environment-Variables >─────────────────────────────── set -p EDITOR (which nvim) # ─────────────────────────< START | distro/packagemanger detection >───────────────────────── @@ -161,7 +163,7 @@ if command -v git >/dev/null 2>&1 alias gc='git clone --recurse-submodule' alias ga='git add' alias gp='git pull --recurse-submodule' - alias gsu='git submodule foreach git pull && git add . && git commit -m " updated 📌submodules" && echo "-- Committed changes, pushing now.." && sleep 2 && git push' + alias gsu='git submodule foreach git pull && git add . && git commit -m " updated 📌submodules" && echo "-- Committed changes, pushing now.." && sleep 1.5 && git push' alias gcm='git commit -m' alias gpu='git push --recurse-submodule=on-demand' end diff --git a/functions/git.fish b/functions/git.fish index f1b69c5..955669e 100644 --- a/functions/git.fish +++ b/functions/git.fish @@ -3,7 +3,7 @@ function gsa read repo echo "-- enter the branch to checkout (main/master..) --" read branch - echo "-- enter the relative path, where the submodule will be cloned to. (don't use fist /) --" + echo "-- enter the relative path, where the submodule will be cloned to. (don't use fist / or ./) --" read -S path echo "git submodule add --branch $branch --name $path $repo" end