feat: add update command
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-26 21:36:03 +02:00
parent e3292b0c73
commit 17cb06904f
4 changed files with 33 additions and 3 deletions

View File

@@ -1,9 +1,16 @@
function git-now {
# Run an update in the background
(
nohup gitnow update > /dev/null 2>&1 &
)
# Find the repository of choice
choice=$(gitnow "$@" --no-shell)
if [[ $? -ne 0 ]]; then
return $?
fi
# Enter local repository path
cd "$(echo "$choice" | tail --lines 1)"
}