zshrc: run tlog alias with --follow=name It's annoying to follow the syslog, but then tools like logroate kicking in to rename syslog to syslog.1. Then you're stuck with the "old" syslog file content, by using the --follow=name option we can fix this. Quoting from tail(1): | With --follow (-f), tail defaults to following the file descriptor, | which means that even if a tail'ed file is renamed, tail will continue | to track its end. This default behavior is not desirable when you really | want to track the actual name of the file, not the file descriptor | (e.g., log rotation). Use --follow=name in that case. That causes tail | to track the named file in a way that accommodates renaming, removal and | creation.
doc: Error out properly when a generator fails In make only timestamps and return values matter. And the shell will create a file and update its timestamp when it sees an output redirection. No matter if the program driving the redirected data fails or not. So even if the first generator run fails, rerunning make will work, with things looking like they worked out just fine. This fixes the issue by running the separate steps toward file generation one by one. This issue was brought up by Edward E. (cbrt64 on github) in PR#135 on github¹, including a proof-of-concept implementation, as well as valuable feedback. This implementation was derived from it. See the pull-request log for details. ¹ https://github.com/grml/grml-etc-core/pull/135
zshrc: add `NOETCHOSTS` parameter `/etc/hosts` may be used as a denylist for undesired hosts on some systems. In such usage scenarios the file may be large in size and parsing it may severely impact shell startup time. For example, on a system with `/etc/hosts` from https://github.com/StevenBlack/hosts: ``` % cat profile.zsh #!/usr/bin/env zsh zmodload zsh/zprof source ./etc/zsh/zshrc zprof ``` ``` % ./profile.zsh | head -3 num calls time self name ----------------------------------------------------------------------------------- 1) 1 1181.93 1181.93 87.91% 1181.14 1181.14 87.85% grmlcomp ``` ``` % NOETCHOSTS=1 ./profile.zsh | head -3 num calls time self name ----------------------------------------------------------------------------------- 1) 2 79.77 39.88 47.37% 79.77 39.88 47.37% compaudit ``` Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
zshrc: no longer set histignorealldups The histignorealldups option provides a feature, that if a new command line being added to the history list duplicates an older one, the older command is removed from the list. Demonstration: | root@grml ~ # echo foo | foo | root@grml ~ # echo bar | bar | root@grml ~ # history -E 0 | 1 9.7.2021 07:48 exec zsh | 2 9.7.2021 07:48 echo foo | 3 9.7.2021 07:48 echo bar | root@grml ~ # echo foo | foo | root@grml ~ # history -E 0 | 1 9.7.2021 07:48 exec zsh | 3 9.7.2021 07:48 echo bar | 5 9.7.2021 07:48 echo foo This is certainly useful for several people, like in personal setups. But especially for system administration tasks it's quite essential, that the history shows "the full truth", and it's hard to reconstruct the order of commands that have been executed. Whoever wants to get the old behavior back, can enable `setopt histignorealldups` in their personal zshrc. Provide the according configuration snippet in /etc/skel/.zshrc instead, and update docs accordingly. Closes: grml/grml-etc-core#114
doc: adjust txt2tags usage for versions >=3.3 1) drop --css-sugar option from txt2tags as it is no longer supported Quoting from https://sources.debian.org/src/txt2tags/3.4-2/CHANGELOG.md/, respectively /usr/share/doc/txt2tags/changelog.gz as present in current Debian/unstable: | * Always use CSS sugar and drop `--css-sugar` option (Jendrik Seipp). 2) the xhtml target is also gone since v3.3 Quoting the changelog: | # Version 3.3 (2019-11-04) | | * Update html target to HTML5 and drop xhtml target (Jendrik Seipp). Also see https://github.com/txt2tags/txt2tags regarding v2.7 vs. v3.x NOTE: the output of txt2tags v2.6-4.1 (as present in Debian/buster) is not really useable now. We don't depend on txt2tags >=3.4-2 as present in Debian/unstable though, as we don't use the HTML build output during the package build.
Fix a bunch of typos s/Directoy/Directory/ s/Dont/Don't/ s/accross/across/ s/an other/another/ s/completition/completion/ s/directoy/directory/ s/dont/don't/ s/occurence/occurrence/ s/overwriten/overwritten/ s/prefered/preferred/ s/prevously/previously/ s/reenabled/re-enabled/ s/to to/to/ s/whith/with/
zshrc: Add more robustness to completion caching setup [Closes: issue1933] This is based on a suggestion by Thilo Six <tech@xk2c.de>. The setup now uses $GRML_COMP_CACHING to decide on whether to configure caching at all and $GRML_COMP_CACHE_DIR to tell where to put the caching data. It also makes sure the caching directory actually exists before using it. See the included documentation for details. Signed-off-by: Frank Terbeck <ft@grml.org>