[Git-commits] [grml/grml-etc-core] cdbb53: Marking an array for export serves no purpose

Frank Terbeck ft at grml.org
Fri Jun 26 14:14:30 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-etc-core
  Commit: cdbb53b4514fd48e8f8edf759b9cc8341056bf27
      https://github.com/grml/grml-etc-core/commit/cdbb53b4514fd48e8f8edf759b9cc8341056bf27
  Author: Frank Terbeck <ft at grml.org>
  Date:   2015-06-26 (Fri, 26 Jun 2015)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  Marking an array for export serves no purpose

These are remnants of me not completely understanding the way that scope
works in shells. I'll remove these whenever I see them.


  Commit: 4ac3e891ea81a5464e7c43bd570f8a95d841fc93
      https://github.com/grml/grml-etc-core/commit/4ac3e891ea81a5464e7c43bd570f8a95d841fc93
  Author: Frank Terbeck <ft at grml.org>
  Date:   2015-06-26 (Fri, 26 Jun 2015)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  Rewrite large parts of persistent dirstack handling

In order to allow filtering what gets committed to the persistent
dirstack, I ended up rewriting the handling altogether.

In order to keep a filtered dirstack, we can't actually derive what gets
saved from $dirstack, unless we'd like to apply the filter to all
entries of the stack each time we're about to save the data to disk.

This uses a new parameter $GRML_PERSISTENT_DIRSTACK, which is our
filtered representation of the actual dirstack.

This code allows for using the same filters after *reading* the saved
dirstack from file while the setup is loading (don't worry, a manual
update with examples is coming up).

On the plus side, this removes the dreaded uprint utility, that we ONLY
used in chpwd when saving dirstack to a file. With this new code, the
GRML_PERSISTENT_DIRSTACK parameter use the -U flag of typeset, which
keeps it unique the whole time.


  Commit: 5297e36f660009d57607c4098ec834bada1b69db
      https://github.com/grml/grml-etc-core/commit/5297e36f660009d57607c4098ec834bada1b69db
  Author: Frank Terbeck <ft at grml.org>
  Date:   2015-06-26 (Fri, 26 Jun 2015)

  Changed paths:
    M doc/grmlzshrc.t2t

  Log Message:
  -----------
  Documentation for configuring persistent dirstack filters


Compare: https://github.com/grml/grml-etc-core/compare/ef0f2491f306...5297e36f6600


More information about the Git-commits mailing list