[Git-commits] [grml/grml-etc-core] 66e89f: zshrc: New prompt: Add promptsys help (-h) text

Frank Terbeck ft at grml.org
Tue Mar 5 02:13:53 CET 2013


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

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Add promptsys help (-h) text

And also, a few required stubs.

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


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

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Register prompt theme with promptsys

This requires a little more care, since promptinit only picks up
themes from $fpath; which we don't do. We define the prompt directly
in the zshrc file.

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


  Commit: 193a49b2aea5f1b945012f52d08da63e5ce70282
      https://github.com/grml/grml-etc-core/commit/193a49b2aea5f1b945012f52d08da63e5ce70282
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-04 (Mon, 04 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Implement the basic grml prompt framework

This actually already implements most of the stuff, that is in
our usual prompt.

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


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

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Move more precmd() code to hook fncs

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


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

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Allow `items' list for PS1 _and_ RPS1

We have this $PERCENT bit, that tracks battery status. And to integrate
that into the framework requires either a lot of code specialisation and
duplication, or we refactor the PS1 setting loop so it can set RSP1,
too.

This changes the configuration scheme a bit. Dokumentation updated
accordingly.

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


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

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: support [[ $BATTERY -gt 0 ]]

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


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

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Support TERM == dumb

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


  Commit: 5ba80c49539c4904c7e34540866b44804e3758ac
      https://github.com/grml/grml-etc-core/commit/5ba80c49539c4904c7e34540866b44804e3758ac
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-04 (Mon, 04 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Username in red for root

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


  Commit: 2a53aa416564265698589bb5301454e2e6fc38ab
      https://github.com/grml/grml-etc-core/commit/2a53aa416564265698589bb5301454e2e6fc38ab
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-04 (Mon, 04 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Add new theme: grml-large

This is what should be enabled if GRMLPROMPT=1 was specified by the user.

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


  Commit: 3fe419b82dc0a529152ae6fbd57eea9cabaa0236
      https://github.com/grml/grml-etc-core/commit/3fe419b82dc0a529152ae6fbd57eea9cabaa0236
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-04 (Mon, 04 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Add new theme: grml-chroot

This should replace the GRML_CHROOT specific prompt.

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


  Commit: 7a63be758c95d3979006dba9aa3d558e42a91beb
      https://github.com/grml/grml-etc-core/commit/7a63be758c95d3979006dba9aa3d558e42a91beb
  Author: Frank Terbeck <ft at grml.org>
  Date:   2013-03-04 (Mon, 04 Mar 2013)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: New prompt: Fix wrong logic for user name colouring

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


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

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: Enable the grml prompt theme via promptsys

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


Compare: https://github.com/grml/grml-etc-core/compare/66e89f61ae4c^...e468c8aa0599


More information about the Git-commits mailing list