[Git-commits] [grml/grml-etc-core] 03ec73: zshrc: Reset $REPLY parameter before calling promp...
Michael Prokop
noreply at github.com
Wed Aug 21 16:27:02 CEST 2019
Branch: refs/heads/master
Home: https://github.com/grml/grml-etc-core
Commit: 03ec73ccb21f701a03ef49167e354386c07ea05a
https://github.com/grml/grml-etc-core/commit/03ec73ccb21f701a03ef49167e354386c07ea05a
Author: Dmitri Vereshchagin <dmitri.vereshchagin at gmail.com>
Date: 2019-06-22 (Sat, 22 Jun 2019)
Changed paths:
M etc/zsh/zshrc
Log Message:
-----------
zshrc: Reset $REPLY parameter before calling prompt token functions
It may be tempting to write a prompt token function like this
if (( ${+commands[kerl]} )) REPLY=$(kerl prompt '<%s> ')
But if the command does not exist user may be end up with duplicated
tokens in her prompt. Resetting $REPLY parameter before calling
user-defined functions prevents this problem.
Commit: 24e8d3be9f59a015d4292b09beb38ea707a260be
https://github.com/grml/grml-etc-core/commit/24e8d3be9f59a015d4292b09beb38ea707a260be
Author: Michael Prokop <mika at grml.org>
Date: 2019-08-21 (Wed, 21 Aug 2019)
Changed paths:
M etc/zsh/zshrc
Log Message:
-----------
Merge remote-tracking branch 'origin/github/pr/82'
Compare: https://github.com/grml/grml-etc-core/compare/0c9e97b682fd...24e8d3be9f59
More information about the Git-commits
mailing list