diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-07-03 19:05:40 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-07-03 19:05:40 +0200 |
commit | a15f0f0e9ff17c1ca5c6d694d732e72c7c03a62b (patch) | |
tree | 8155efc4a6bfe772baa30d6601a92aed432bb424 | |
parent | 3178334a2dd6ead1a42d1728bfa05e001f71693b (diff) | |
download | zsh-a15f0f0e9ff17c1ca5c6d694d732e72c7c03a62b.tar.gz zsh-a15f0f0e9ff17c1ca5c6d694d732e72c7c03a62b.tar.bz2 zsh-a15f0f0e9ff17c1ca5c6d694d732e72c7c03a62b.zip |
cli: beauty touches on 'omz pr test' command
-rw-r--r-- | lib/cli.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh index e25a9f0b1..73ac5a846 100644 --- a/lib/cli.zsh +++ b/lib/cli.zsh @@ -181,6 +181,10 @@ function _omz::pr::test { # 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] " read -r -k 1 + + # If no newline entered, add a newline + [[ "$REPLY" != $'\n' ]] && echo + # If NO selected, do nothing else [[ "$REPLY" = [nN] ]] && return ( |