grml-etc-core.git
9 years agoRelease new version 0.10.0 v0.10.0
Michael Prokop [Thu, 18 Sep 2014 10:22:59 +0000 (12:22 +0200)]
Release new version 0.10.0

9 years agogrmlzshrc.5: minor typo fixes and update timestamp
Michael Prokop [Thu, 18 Sep 2014 10:20:52 +0000 (12:20 +0200)]
grmlzshrc.5: minor typo fixes and update timestamp

9 years agozshrc: make sure to not alias already aliased ls commands
Michael Prokop [Thu, 18 Sep 2014 10:10:43 +0000 (12:10 +0200)]
zshrc: make sure to not alias already aliased ls commands

Thanks to Moviuro <moviuro+grml@gmail.com> for spotting,
thanks to Frank Terbeck <ft@grml.org> for reviewing.

9 years agoRun wrap-and-sort on the debian directory
Michael Prokop [Thu, 18 Sep 2014 10:05:35 +0000 (12:05 +0200)]
Run wrap-and-sort on the debian directory

9 years agogrmlzshrc.5: updated GRML_DISPLAY_BATTERY information
Moviuro [Wed, 17 Sep 2014 23:01:23 +0000 (01:01 +0200)]
grmlzshrc.5: updated GRML_DISPLAY_BATTERY information

9 years agozshrc: added Darwin support for battery info
Moviuro [Wed, 17 Sep 2014 23:00:44 +0000 (01:00 +0200)]
zshrc: added Darwin support for battery info

9 years agogrmlzshrc.5: added the new OS recognition functions
Moviuro [Wed, 17 Sep 2014 15:45:12 +0000 (17:45 +0200)]
grmlzshrc.5: added the new OS recognition functions

9 years agozshrc: moved the unsupported OSes for the battery info in the battery function
Moviuro [Tue, 16 Sep 2014 11:49:28 +0000 (13:49 +0200)]
zshrc: moved the unsupported OSes for the battery info in the battery function

9 years agozshrc: added FreeBSD support for battery info
Moviuro [Tue, 16 Sep 2014 11:42:50 +0000 (13:42 +0200)]
zshrc: added FreeBSD support for battery info

9 years agozshrc: added OpenBSD support for battery info
Moviuro [Mon, 15 Sep 2014 17:58:13 +0000 (19:58 +0200)]
zshrc: added OpenBSD support for battery info

9 years agozshrc: Send error output to devnull in grep-option detection
Frank Terbeck [Mon, 15 Sep 2014 12:34:51 +0000 (14:34 +0200)]
zshrc: Send error output to devnull in grep-option detection

Signed-off-by: Frank Terbeck <ft@grml.org>
9 years agogrmlzshrc.5: Update manual wrt $BATTERY and $GRML_DISPLAY_BATTERY
Frank Terbeck [Mon, 15 Sep 2014 11:12:33 +0000 (13:12 +0200)]
grmlzshrc.5: Update manual wrt $BATTERY and $GRML_DISPLAY_BATTERY

Signed-off-by: Frank Terbeck <ft@grml.org>
9 years agozshrc: Add fallback to $BATTERY for backwards compatibility
Frank Terbeck [Mon, 15 Sep 2014 11:11:43 +0000 (13:11 +0200)]
zshrc: Add fallback to $BATTERY for backwards compatibility

Signed-off-by: Frank Terbeck <ft@grml.org>
9 years agozshrc: converted to UTF-8
Moviuro [Mon, 15 Sep 2014 10:18:21 +0000 (12:18 +0200)]
zshrc: converted to UTF-8

9 years agozshrc: renamed allcaps variable
Moviuro [Mon, 15 Sep 2014 10:16:38 +0000 (12:16 +0200)]
zshrc: renamed allcaps variable

BATTERY becomes GRML_DISPLAY_BATTERY
PERCENT becomes GRML_BATTERY_LEVEL

9 years agozshrc: rewrite battery function
Moviuro [Mon, 15 Sep 2014 10:11:26 +0000 (12:11 +0200)]
zshrc: rewrite battery function

Now supports multiple batteries
Now indicates status (^ Charging, v Discharging, = Full or Unknown)
Now supports different functions for different OSes

TODO: add configurability (zstyle, etc.)
TODO: add support for other OSes (ATM, only Linux is supported)

9 years agozshrc: updated OS recognition functions
Moviuro [Mon, 15 Sep 2014 10:07:37 +0000 (12:07 +0200)]
zshrc: updated OS recognition functions

TODO: add more to the list (e.g. *BSDs, Solaris...)

9 years agoActually check that grep options exist before adding them to the alias.
Moviuro [Thu, 11 Sep 2014 20:40:33 +0000 (22:40 +0200)]
Actually check that grep options exist before adding them to the alias.

9 years agoActually check that ls options exist before adding them to the alias.
Moviuro [Thu, 11 Sep 2014 20:40:09 +0000 (22:40 +0200)]
Actually check that ls options exist before adding them to the alias.

9 years agozshrc: Remove ‘-C’ from the ‘ls’ alias's options
Frank Terbeck [Mon, 18 Aug 2014 08:26:04 +0000 (10:26 +0200)]
zshrc: Remove ‘-C’ from the ‘ls’ alias's options

That option forces column-wise display, which is the default anyway
if ls is connected to a terminal.

Reported by moviuro in #grml on freenode.

Acked-by: mika, ft
9 years agoRelease new version 0.9.6 v0.9.6
Michael Prokop [Thu, 3 Jul 2014 10:47:45 +0000 (12:47 +0200)]
Release new version 0.9.6

9 years agozshrc: Add function to toggle colour codes in vcs_info formats
Frank Terbeck [Mon, 23 Jun 2014 23:06:49 +0000 (01:06 +0200)]
zshrc: Add function to toggle colour codes in vcs_info formats

→ grml_vcs_info_toggle_colour

Documentation included.

Signed-off-by: Frank Terbeck <ft@grml.org>
9 years agozshrc: Use modern colour codes with modern zsh versions
Frank Terbeck [Mon, 23 Jun 2014 22:59:02 +0000 (00:59 +0200)]
zshrc: Use modern colour codes with modern zsh versions

Signed-off-by: Frank Terbeck <ft@grml.org>
9 years agozshrc: Adjustments for abbreviation expansion
Frank Terbeck [Fri, 13 Jun 2014 18:27:54 +0000 (20:27 +0200)]
zshrc: Adjustments for abbreviation expansion

These changes should fix refcard-generation wrt keybindings.

It also removes $NOABBREVIATION and grml_toggle_abbrev which are not
required anymore with the new default abbreviation keybinding, which is
"C-x .".

Signed-off-by: Frank Terbeck <ft@grml.org>
9 years agozshrc: Move generation marker to right position
Frank Terbeck [Fri, 13 Jun 2014 17:52:18 +0000 (19:52 +0200)]
zshrc: Move generation marker to right position

9 years agozshrc: export SHELL only if unset, don't hardcode path for zsh binary
Michael Prokop [Thu, 22 May 2014 10:12:36 +0000 (12:12 +0200)]
zshrc: export SHELL only if unset, don't hardcode path for zsh binary

On e.g. FreeBSD zsh isnt' necessarily available as /bin/zsh, so
let's make that more flexible. Also while at it export SHELL only
if the variable is unset yet, since setting SHELL should be
something the login system care about.

Acked-by: Frank Terbeck <ft@grml.org>
9 years agoRelease new version 0.9.5 v0.9.5
Michael Prokop [Tue, 20 May 2014 10:28:47 +0000 (12:28 +0200)]
Release new version 0.9.5

9 years agozshrc: drop duplicated bk() function [Closes: issue1307]
Michael Prokop [Tue, 20 May 2014 10:25:22 +0000 (12:25 +0200)]
zshrc: drop duplicated bk() function [Closes: issue1307]

Thanks: Thilo Six <tech@xk2c.de>

9 years agozshrc: use "local" file variable in sll()
Michael Prokop [Mon, 12 May 2014 11:05:18 +0000 (13:05 +0200)]
zshrc: use "local" file variable in sll()

9 years agozshrc: extend dchange() to support apt-get and multiple package names
Michael Prokop [Mon, 12 May 2014 10:18:33 +0000 (12:18 +0200)]
zshrc: extend dchange() to support apt-get and multiple package names

Since apt v0.8.11 it's possible to use "apt-get changelog $package"
as well. While at it support displaying changelogs for multiple
packages.

10 years agoDebian packaging: use correct "Grml" spelling
Michael Prokop [Sat, 19 Apr 2014 22:26:25 +0000 (00:26 +0200)]
Debian packaging: use correct "Grml" spelling

10 years agoRelease new version 0.9.4
Michael Prokop [Sat, 19 Apr 2014 13:44:51 +0000 (15:44 +0200)]
Release new version 0.9.4

10 years agozshrc: Make options of gpasswd complete via _gnu_generic
Frank Terbeck [Wed, 9 Apr 2014 08:12:31 +0000 (10:12 +0200)]
zshrc: Make options of gpasswd complete via _gnu_generic

10 years agoMake ‘egrep’ use the same options as ‘grep’ [Closes: issue1230]
Frank Terbeck [Thu, 27 Mar 2014 12:13:16 +0000 (13:13 +0100)]
Make ‘egrep’ use the same options as ‘grep’ [Closes: issue1230]

10 years agozshrc: introduce variable for the compdump file [Closes: issue1275]
Erik Bernstein [Thu, 20 Mar 2014 18:47:11 +0000 (19:47 +0100)]
zshrc: introduce variable for the compdump file [Closes: issue1275]

Make the completion dump file location configurable by
setting COMPDUMPFILE.

10 years agoRelease new version 0.9.3 v0.9.3
Michael Prokop [Mon, 3 Feb 2014 15:14:52 +0000 (16:14 +0100)]
Release new version 0.9.3

10 years agozshrc: check for DIRSTACK{SIZE,FILE} in chpwd()
Michael Prokop [Mon, 3 Feb 2014 13:49:34 +0000 (14:49 +0100)]
zshrc: check for DIRSTACK{SIZE,FILE} in chpwd()

If the environment variables are unset chpwd emmits an
error message, so check before using.

Thanks: Frank Terbeck <ft@grml.org> for review

10 years agozshrc: do not source /etc/sysconfig/keyboard
Michael Prokop [Mon, 3 Feb 2014 11:48:07 +0000 (12:48 +0100)]
zshrc: do not source /etc/sysconfig/keyboard

There shouldn't be any need for doing this here.

10 years agozshrc: drop setting TZ via /etc/timezone
Michael Prokop [Mon, 3 Feb 2014 11:47:26 +0000 (12:47 +0100)]
zshrc: drop setting TZ via /etc/timezone

This shouldn't be part of zshrc.

10 years agozsh: purge more latex filename extensions
Bernhard Tittelbach [Fri, 24 Jan 2014 08:10:38 +0000 (09:10 +0100)]
zsh: purge more latex filename extensions

10 years agozshrc: drop -b option from `ls' alias, unsupported e.g. on OpenBSD
Michael Prokop [Tue, 21 Jan 2014 18:41:02 +0000 (19:41 +0100)]
zshrc: drop -b option from `ls' alias, unsupported e.g. on OpenBSD

10 years agoRelease new version 0.9.2 v0.9.2
Michael Prokop [Tue, 24 Dec 2013 12:12:49 +0000 (13:12 +0100)]
Release new version 0.9.2

10 years agoBump Standards-Version to 3.9.5
Michael Prokop [Tue, 24 Dec 2013 12:12:38 +0000 (13:12 +0100)]
Bump Standards-Version to 3.9.5

10 years agoUpdate hl and _hl_complete to work with current ‘highlight’ versions
Frank Terbeck [Sat, 21 Dec 2013 12:35:50 +0000 (13:35 +0100)]
Update hl and _hl_complete to work with current ‘highlight’ versions

10 years agocheck4progs: Change testing from ‘which’ to iterating over $PATH [Closes: issue1284]
Thilo Six [Sun, 17 Nov 2013 14:34:51 +0000 (15:34 +0100)]
check4progs: Change testing from ‘which’ to iterating over $PATH [Closes: issue1284]

This removes the availability of ‘which’ and improves performance when
‘which’ is an external program.

This patch also silently adds options to make the function more quiet
than its default behaviour.

10 years agoscript-functions: Set filetype to "sh" with vim
Thilo Six [Sun, 17 Nov 2013 14:30:36 +0000 (15:30 +0100)]
script-functions: Set filetype to "sh" with vim

This helps with detecting the file type, since the heuristics fail.

10 years agoscript-functions: correct tabstop setting in vim modeline
Michael Prokop [Tue, 12 Nov 2013 10:07:30 +0000 (11:07 +0100)]
script-functions: correct tabstop setting in vim modeline

See discussion in issue1284

10 years agoRelease new version 0.9.1 v0.9.1
Michael Prokop [Thu, 7 Nov 2013 08:56:29 +0000 (09:56 +0100)]
Release new version 0.9.1

Signed-off-by: Michael Prokop <mika@grml.org>
10 years agoRewrite check4progs from etc/grml/script-functions
Thilo Six [Thu, 7 Nov 2013 08:50:31 +0000 (09:50 +0100)]
Rewrite check4progs from etc/grml/script-functions

This largely simplifies the function and also fixes its behaviour when
called with more than one argument.

Signed-off-by: Frank Terbeck <ft@grml.org>
10 years agoUse ISO8601 date in /etc/grml/screenrc [Closes: issue1283]
Michael Prokop [Mon, 21 Oct 2013 13:52:30 +0000 (15:52 +0200)]
Use ISO8601 date in /etc/grml/screenrc [Closes: issue1283]

Thanks: Andras Korn for the suggestion

10 years agoRelease new version 0.9.0 v0.9.0
Michael Prokop [Wed, 4 Sep 2013 15:08:16 +0000 (17:08 +0200)]
Release new version 0.9.0

10 years agozshrc: use "ctrl-x ." instead ",." to enable power completion / abbreviation expansion
Michael Prokop [Mon, 2 Sep 2013 18:06:29 +0000 (20:06 +0200)]
zshrc: use "ctrl-x ." instead ",." to enable power completion / abbreviation expansion

The use of ",." for enabling the power completion /
abbreviation expansion / buffer expansion was a bad idea
because you'll get either a delay or even missing characters,
e.g. when ",." is part of a copy/paste action. So switch to
a safer approach by using "ctrl-x ." instead.

10 years agogrmlzshrc(5): Mentioned the wrong function; actually: grml_theme_add_token()
Frank Terbeck [Wed, 28 Aug 2013 08:49:15 +0000 (10:49 +0200)]
grmlzshrc(5): Mentioned the wrong function; actually: grml_theme_add_token()

10 years agogrmlzshrc(5): Briefly mention `grml_theme_has_token()'
Frank Terbeck [Wed, 28 Aug 2013 08:47:08 +0000 (10:47 +0200)]
grmlzshrc(5): Briefly mention `grml_theme_has_token()'

10 years agoAdd `grml_theme_has_token' guard function
Frank Terbeck [Wed, 28 Aug 2013 08:46:34 +0000 (10:46 +0200)]
Add `grml_theme_has_token' guard function

Signed-off-by: Frank Terbeck <ft@grml.org>
10 years agoFix: trying to overwrite '/etc/vim/vimrc', which is also in package vim-common 2...
Thorsten Glaser [Sun, 28 Apr 2013 01:25:13 +0000 (01:25 +0000)]
Fix: trying to overwrite '/etc/vim/vimrc', which is also in package vim-common 2:7.3.547-7

This is a Replaces without Conflicts+Provides, which tells dpkg to
just go on and overwrite the file and that yes, this is no accident.

(That being said, replacing conffiles is tricky.)

Signed-off-by: Michael Prokop <mika@grml.org>
Tested-by: Markus Rekkenbeil <bionix@grml.org>
10 years agoRelease new version 0.8.2 v0.8.2
Michael Prokop [Mon, 8 Jul 2013 09:00:06 +0000 (11:00 +0200)]
Release new version 0.8.2

11 years agozshrc: Fix style lookup of `post' styles in prompt setup [Closes: issue1253]
Jan Hruban [Wed, 10 Apr 2013 12:13:11 +0000 (14:13 +0200)]
zshrc: Fix style lookup of `post' styles in prompt setup [Closes: issue1253]

Acked-by: Frank Terbeck <ft@grml.org>
11 years agoFix Virtualenv prompt example
Frank Terbeck [Mon, 8 Apr 2013 22:30:39 +0000 (00:30 +0200)]
Fix Virtualenv prompt example

Reported-by: nicorevin
Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: drop duplicated "Complete word from GNU screen buffer" documentation
Michael Prokop [Mon, 8 Apr 2013 11:31:17 +0000 (13:31 +0200)]
zshrc: drop duplicated "Complete word from GNU screen buffer" documentation

Thanks: Frank Terbeck <ft@grml.org> for the hint

11 years agomake help-zle work with new bind2maps
Bernhard Tittelbach [Mon, 8 Apr 2013 10:04:15 +0000 (12:04 +0200)]
make help-zle work with new bind2maps

11 years agoprint error code in bold
Christian Hesse [Mon, 8 Apr 2013 07:29:50 +0000 (09:29 +0200)]
print error code in bold

11 years agoRelease new version 0.8.1 v0.8.1
Michael Prokop [Wed, 3 Apr 2013 08:37:21 +0000 (10:37 +0200)]
Release new version 0.8.1

11 years agozshrc: Make root-user name bold in prompt again
Frank Terbeck [Wed, 3 Apr 2013 08:34:48 +0000 (10:34 +0200)]
zshrc: Make root-user name bold in prompt again

11 years agoRelease new version 0.8.0 v0.8.0
Michael Prokop [Tue, 2 Apr 2013 12:31:13 +0000 (14:31 +0200)]
Release new version 0.8.0

11 years agozshrc: Make zle-smkx() and zle-rmkx() more robust wrt changed options
Frank Terbeck [Mon, 1 Apr 2013 14:58:43 +0000 (16:58 +0200)]
zshrc: Make zle-smkx() and zle-rmkx() more robust wrt changed options

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agoAdd NEWS entry about changed keyboard handling
Frank Terbeck [Mon, 1 Apr 2013 14:56:34 +0000 (16:56 +0200)]
Add NEWS entry about changed keyboard handling

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agoNEWS: Use grml.org address
Frank Terbeck [Sun, 24 Mar 2013 00:25:23 +0000 (01:25 +0100)]
NEWS: Use grml.org address

11 years agoNEWS: Add note about prompt changes in new version
Frank Terbeck [Sun, 24 Mar 2013 00:24:30 +0000 (01:24 +0100)]
NEWS: Add note about prompt changes in new version

11 years agoskel/.zshrc: Add example for prompt extension for virtualenv
Frank Terbeck [Sun, 24 Mar 2013 00:23:58 +0000 (01:23 +0100)]
skel/.zshrc: Add example for prompt extension for virtualenv

11 years agogrmlzshrc.t2t: Add customisation note about smkx and rmkx for keybindings
Frank Terbeck [Sun, 17 Mar 2013 18:50:23 +0000 (19:50 +0100)]
grmlzshrc.t2t: Add customisation note about smkx and rmkx for keybindings

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc, keys: Move all bindings over to bind2maps
Frank Terbeck [Sun, 17 Mar 2013 18:36:59 +0000 (19:36 +0100)]
zshrc, keys: Move all bindings over to bind2maps

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: unfunction less utilities
Frank Terbeck [Sun, 17 Mar 2013 18:35:42 +0000 (19:35 +0100)]
zshrc: unfunction less utilities

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Fix `salias' wrt parameter scope
Frank Terbeck [Sun, 17 Mar 2013 18:35:10 +0000 (19:35 +0100)]
zshrc: Fix `salias' wrt parameter scope

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Remove old reverse-menu-complete binding
Frank Terbeck [Sun, 17 Mar 2013 17:15:37 +0000 (18:15 +0100)]
zshrc: Remove old reverse-menu-complete binding

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Use zrcgotwidget in appropriate places
Frank Terbeck [Sun, 17 Mar 2013 17:07:10 +0000 (18:07 +0100)]
zshrc: Use zrcgotwidget in appropriate places

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc, keys: fix `zrcgotwidget()' function
Frank Terbeck [Sun, 17 Mar 2013 17:06:27 +0000 (18:06 +0100)]
zshrc, keys: fix `zrcgotwidget()' function

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Load zsh/parameters module
Frank Terbeck [Sun, 17 Mar 2013 17:05:53 +0000 (18:05 +0100)]
zshrc: Load zsh/parameters module

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc, keys: Move bindkey calls to the right place
Frank Terbeck [Sun, 17 Mar 2013 16:28:32 +0000 (17:28 +0100)]
zshrc, keys: Move bindkey calls to the right place

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc, keys: Reorganise keyboard setup
Frank Terbeck [Sun, 17 Mar 2013 15:53:58 +0000 (16:53 +0100)]
zshrc, keys: Reorganise keyboard setup

This commit causes zsh to use smkx mode while its line editor (zle) is
active. This might break backwards compatibility with older
customisations, that rely on binding hardcoded escape sequences to
widgets.

Doing this is _absolutely_ required to make the values from $terminfo
valid. Those might otherwise be wrong and absolutely useless.

We do turn off smkx mode again when the line editor is done. So, nothing
else should be affected.

This commit also reorganises much of the setup, because different
aspects were addressed in between one another.

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Fix mistakes in grml_theme_add_token() help output
Frank Terbeck [Mon, 18 Mar 2013 19:49:15 +0000 (20:49 +0100)]
zshrc: Fix mistakes in grml_theme_add_token() help output

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Add `grml_theme_add_token()' function
Frank Terbeck [Mon, 18 Mar 2013 15:03:38 +0000 (16:03 +0100)]
zshrc: Add `grml_theme_add_token()' function

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agoFix `percent' token in the new prompt
Frank Terbeck [Fri, 15 Mar 2013 21:21:22 +0000 (22:21 +0100)]
Fix `percent' token in the new prompt

See also: 5ef5260128becce09ba1f6ddcc5395892cba3ff2

This is a little embarrassing.

Reported-by: cstamas on #gmrl
Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agofix NOPRECMD logic
Benedikt Morbach [Wed, 13 Mar 2013 20:48:00 +0000 (21:48 +0100)]
fix NOPRECMD logic

Acked-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Fix error in docstring
Frank Terbeck [Wed, 6 Mar 2013 16:18:25 +0000 (17:18 +0100)]
zshrc: Fix error in docstring

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: some further tuning to make grml-gen-zshrefcard output nice
Michael Prokop [Wed, 6 Mar 2013 12:31:54 +0000 (13:31 +0100)]
zshrc: some further tuning to make grml-gen-zshrefcard output nice

11 years agozshrc: drop deprecated grml-rebuildfstab alias
Michael Prokop [Wed, 6 Mar 2013 12:16:04 +0000 (13:16 +0100)]
zshrc: drop deprecated grml-rebuildfstab alias

We don't ship [grml-]rebuildfstab since quite some time,
so no point in providing that.

11 years agozshrc: some fixes to make grml-gen-zshrefcard happy again
Michael Prokop [Wed, 6 Mar 2013 11:46:56 +0000 (12:46 +0100)]
zshrc: some fixes to make grml-gen-zshrefcard happy again

Thanks: Frank Terbeck <ft@grml.org> for helping

11 years agozshrc: Use %# instead of %% for the `percent' token in the prompt
Frank Terbeck [Wed, 6 Mar 2013 11:42:52 +0000 (12:42 +0100)]
zshrc: Use %# instead of %% for the `percent' token in the prompt

The "%%" puts a percent sign unconditionally, but we only want the percent for
non-root users. root should still have the "#" sign. This is the fix for that.

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agogrmlzshrc.t2t: Document how static prompt customisation should be done now
Frank Terbeck [Wed, 6 Mar 2013 11:37:50 +0000 (12:37 +0100)]
grmlzshrc.t2t: Document how static prompt customisation should be done now

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: New prompt mixed up %B and %b for the path item
Frank Terbeck [Tue, 5 Mar 2013 14:57:43 +0000 (15:57 +0100)]
zshrc: New prompt mixed up %B and %b for the path item

11 years agogrmlzshrc.t2t: Update copyright years
Frank Terbeck [Tue, 5 Mar 2013 14:49:22 +0000 (15:49 +0100)]
grmlzshrc.t2t: Update copyright years

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agogrmlzshrc.t2t: Document the new prompt themes
Frank Terbeck [Tue, 5 Mar 2013 14:47:21 +0000 (15:47 +0100)]
grmlzshrc.t2t: Document the new prompt themes

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: New prompt: Documentation update
Frank Terbeck [Tue, 5 Mar 2013 14:39:12 +0000 (15:39 +0100)]
zshrc: New prompt: Documentation update

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: New prompt: Keep maps sorted
Frank Terbeck [Tue, 5 Mar 2013 14:28:08 +0000 (15:28 +0100)]
zshrc: New prompt: Keep maps sorted

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Move preexec() code to hooks
Frank Terbeck [Tue, 5 Mar 2013 14:22:03 +0000 (15:22 +0100)]
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@grml.org>
11 years agozshrc: Move CNF handler to a better place
Frank Terbeck [Tue, 5 Mar 2013 14:15:00 +0000 (15:15 +0100)]
zshrc: Move CNF handler to a better place

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: Use a non-forking expression to read /etc/debian_chroot
Frank Terbeck [Tue, 5 Mar 2013 14:13:32 +0000 (15:13 +0100)]
zshrc: Use a non-forking expression to read /etc/debian_chroot

Signed-off-by: Frank Terbeck <ft@grml.org>
11 years agozshrc: New prompt: Only enable prompt themes with zsh >= 4.3.7
Frank Terbeck [Tue, 5 Mar 2013 14:06:36 +0000 (15:06 +0100)]
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@grml.org>
11 years agozshrc: New prompt: Reorganise the prompt section
Frank Terbeck [Tue, 5 Mar 2013 13:58:00 +0000 (14:58 +0100)]
zshrc: New prompt: Reorganise the prompt section

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