Files
gitnow/crates/gitnow/include/shell/zsh.sh
kjuulh 17cb06904f
All checks were successful
continuous-integration/drone/push Build is passing
feat: add update command
2024-09-26 21:36:03 +02:00

23 lines
378 B
Bash

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)"
}
function gn {
git-now "$@"
if [[ $? -ne 0 ]]; then
return $?
fi
}