Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
a15f0f0e
Commit
a15f0f0e
authored
Jul 03, 2020
by
Marc Cornellà
Browse files
cli: beauty touches on 'omz pr test' command
parent
3178334a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/cli.zsh
View file @
a15f0f0e
...
@@ -181,6 +181,10 @@ function _omz::pr::test {
...
@@ -181,6 +181,10 @@ function _omz::pr::test {
# After testing, go back to the previous HEAD if the user wants
# After testing, go back to the previous HEAD if the user wants
_omz::log prompt
"do you want to go back to the previous branch? [Y/n] "
_omz::log prompt
"do you want to go back to the previous branch? [Y/n] "
read
-r
-k
1
read
-r
-k
1
# If no newline entered, add a newline
[[
"
$REPLY
"
!=
$'
\n
'
]]
&&
echo
# If NO selected, do nothing else
[[
"
$REPLY
"
=
[
nN]
]]
&&
return
[[
"
$REPLY
"
=
[
nN]
]]
&&
return
(
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment