Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #50 from anonfunc/patch-1

Use vared in zsh instead of read.
  • Loading branch information...
commit 8a8131129cb90879416703c31ad0201f42023e07 2 parents f5d7d68 + e6f4cd8
Nathan Broadbent authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/git/status_shortcuts.sh
4 lib/git/status_shortcuts.sh
View
@@ -175,9 +175,7 @@ theirs(){ _git_resolve_merge_conflict "their" "$@"; }
git_commit_prompt() {
local commit_msg
if [[ $shell == "zsh" ]]; then
- # zsh 'read' is weak. If you know how to make this better, please send a pull request.
- # (Bash 'read' supports prompt, arrow keys, home/end, up through bash history, etc.)
- echo -n "Commit Message: "; read commit_msg
+ vared -h -p "Commit Message: " commit_msg
else
read -r -e -p "Commit Message: " commit_msg
fi
Please sign in to comment.
Something went wrong with that request. Please try again.