[Git-commits] [grml/grml-etc-core] ee5284: zshrc: New prompt: Only enable prompt themes with ...

Frank Terbeck ft at grml.org
Tue Mar 5 15:22:48 CET 2013


  Branch: refs/heads/ft/prompt-rewrite
  Home:   https://github.com/grml/grml-etc-core
  Commit: ee5284a230333a4558f9737f6f4bdf5ff7738af2
      https://github.com/grml/grml-etc-core/commit/ee5284a230333a4558f9737f6f4bdf5ff7738af2
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-05 (Tue, 05 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Only enable prompt themes with zsh >= 4.3.7

The themes do use modern features, that require this constraint.

The fallback prompt, that was being used when promptsys wasn't available
is _way_ more backwards compatible (and will remain like that). Use that
fallback in cases of $ZSH_VERSION < 4.3.7 as well.

This also means, that the GRMLPROMPT=1 and [[ -n $GRML_CHROOT ]] prompts
are not available with shells that old. Version 4.3.7 of zsh was
released on 2008-10-28. I think it's reasonable to require ~5 year old
software for the full-blown version of a setup. The last stable debian
release ships version 4.3.10 and the upcoming release will sport version
4.3.17. Grml ISOs come with version >= 5.0.0.

Signed-off-by: Frank Terbeck <ft at grml.org>


  Commit: c02da01d81640a4b093784a44a7304add35d6bd8
      https://github.com/grml/grml-etc-core/commit/c02da01d81640a4b093784a44a7304add35d6bd8
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-05 (Tue, 05 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: Use a non-forking expression to read /etc/debian_chroot

Signed-off-by: Frank Terbeck <ft at grml.org>


  Commit: 106f481c237e9d5a5d18a32022257c724e37dbde
      https://github.com/grml/grml-etc-core/commit/106f481c237e9d5a5d18a32022257c724e37dbde
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-05 (Tue, 05 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: Move CNF handler to a better place

Signed-off-by: Frank Terbeck <ft at grml.org>


  Commit: 09d13cba84d2606eb359e0baa6311150e96f91ba
      https://github.com/grml/grml-etc-core/commit/09d13cba84d2606eb359e0baa6311150e96f91ba
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-05 (Tue, 05 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: Move preexec() code to hooks

This allows for way more control and customisation by the user, just
like the same move with precmd(), that was done earlier does.

Signed-off-by: Frank Terbeck <ft at grml.org>


Compare: https://github.com/grml/grml-etc-core/compare/f7cc901b0f0a...09d13cba84d2


More information about the Git-commits mailing list