feat: add errout for interactive for script support and atty for clean output
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
15
crates/gitnow/include/shell/zsh.sh
Normal file
15
crates/gitnow/include/shell/zsh.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
function git-now {
|
||||
choice=$(gitnow "$@")
|
||||
if [[ $? -ne 0 ]]; then
|
||||
return $?
|
||||
fi
|
||||
|
||||
cd "$(echo "$choice" | tail --lines 1)"
|
||||
}
|
||||
|
||||
function gn {
|
||||
git-now "$@"
|
||||
if [[ $? -ne 0 ]]; then
|
||||
return $?
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user