NEWS: Add note about prompt changes in new version
[grml-etc-core.git] / debian / NEWS
1 grml-etc-core (0.7.5) unstable; urgency=low
2
3   * zshrc: Prompt converted to zsh's prompt theme system:
4
5     This version of the included zsh setup features a prompt theme based
6     on the old statically set prompt, that we shipped. The prompt is very
7     much customisable. Changing colours or removing and adding information
8     used in the prompt is easily possible via zsh's zstyle mechanism. For
9     more details call this:
10
11         prompt -h grml
12
13     However, if you used to discard our old prompt and used an own static
14     prompt, you need to disable the prompt system so your changes stick,
15     because when a prompt theme is active it takes over control of prompt
16     variables, which will undo your changes again. So your customisation
17     now has to look like this:
18
19         prompt off
20         PS1='%~ %# '
21
22     Our prompt is also quite extensible: For example, if you use
23     Virtualenv, and would like integration in our prompt, this is how it
24     can be done (the default way Virtualenv tries to do this is by
25     statically extending $PS1, which doesn't work with zsh themes, as
26     discussed above):
27
28         function virtual_env_prompt () {
29             REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) }
30         }
31         grml_theme_add_token \
32             virtual-env -f virtual_env_prompt '%F{magenta}' '%f'
33         zstyle ':prompt:grml:left:setup:items' \
34             rc virtual-env change-root user at host path vcs percent
35
36  -- Frank Terbeck <ft@bewatermyfriend.org>  Sun, 24 Mar 2013 01:21:18 +0100
37
38 grml-etc-core (0.3.62) unstable; urgency=low
39
40   * Merged /etc/skel/.zshrc into /etc/zsh/zshrc:
41
42     Starting with grml-etc-core 0.3.62 grml's zsh setup lives only in
43     *one* zshrc file - that is the global one: /etc/zsh/zshrc
44     /etc/skel/.zshrc still exists but provides commented examples only.
45     It is best to leave the /etc/skel/.zshrc file untouched and do
46     personal changes to the setup via ${HOME}/.zshrc.local (as before)
47     which is loaded at the end of the global zshrc.
48
49     That way, we enable people on other operating systems to use our
50     setup, too, just by copying our global zshrc to their ${HOME}/.zshrc.
51     Adjustments would still go to the .zshrc.local file.
52     Further information is available in the grml-zsh-refcard, available
53     at http://grml.org/zsh/
54
55     If you explore *any* problems please let us know:
56     http://grml.org/bugs/
57
58  -- Michael Prokop <mika@grml.org>  Fri, 13 Feb 2009 12:40:28 +0100
59
60 grml-etc-core (0.3.5) unstable; urgency=low
61
62   * Please note, that the setup of zsh's completion functions has
63     been changed. The setup has been cleaned up but as a sideeffect
64     you might notice a problem like:
65
66      "_tags:comptags:67: can only be called from completion function"
67
68     when starting zsh. The reason for this change is because the files
69     inside /etc/zsh/completion.d/ have been renamed from 'foo' to
70     '_foo' and their content has been adjusted according to the new
71     setup too. If you added functions to completion.d yourself, please
72     consider moving them to /etc/zsh/functions.d/. Files in that
73     directory, not starting with an underscore are marked for
74     automatic loading by default (so that is quite convenient).
75
76     So to avoid above error message make sure you don't have any
77     dpkg-files *not* starting with a '_' in /etc/zsh/completion.d/
78     laying around. If there are files *not* starting with an
79     underscore from an older grml-etc-core in completion.d, you may
80     safely remove them.
81
82     Information regarding upgrading can be found also at:
83
84       http://wiki.grml.org/doku.php?id=upgrading
85
86     Information regarding (changing) zsh setup can be found at:
87
88       http://grml.org/zsh/#grmlzshrefcard
89
90  -- Michael Prokop <mika@grml.org>  Fri, 25 May 2007 01:32:27 +0200
91
92 grml-etc-core (0.1-31) unstable; urgency=low
93
94   * Please note, that the behaviour of global aliases in /etc/skel/.zshrc
95     has been changed. Now global aliases won't be expanded automatically
96     anymore. You can still use them (and even some more now as well),
97     just type the abbreviation/global alias and expand it via pressing
98     the key sequence ',.'. Usage example:
99
100     % ls G<press-',.'-here>
101
102     expands to:
103
104     % ls |& grep --color=auto
105
106     Thanks for the contribution, Matthias Kopfermann!
107
108  -- Michael Prokop <mika@grml.org>  Sun, 12 Nov 2006 12:27:02 +0100