projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
18ce179
)
* /etc/zsh/zshrc: update NOPRECMD handling
0.2.9
author
Michael Prokop
<mika@grml.org>
Sun, 3 Dec 2006 11:53:12 +0000
(12:53 +0100)
committer
Michael Prokop
<mika@grml.org>
Sun, 3 Dec 2006 11:53:12 +0000
(12:53 +0100)
debian/changelog
patch
|
blob
|
history
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/debian/changelog
b/debian/changelog
index
59a519a
..
82ef7d8
100644
(file)
--- a/
debian/changelog
+++ b/
debian/changelog
@@
-1,3
+1,9
@@
+grml-etc-core (0.2.9) unstable; urgency=low
+
+ * /etc/zsh/zshrc: update NOPRECMD handling
+
+ -- Michael Prokop <mika@grml.org> Sun, 3 Dec 2006 11:47:22 +0100
+
grml-etc-core (0.2.8) unstable; urgency=low
* /etc/zsh/zshrc: drop completion for lintian and linda as
grml-etc-core (0.2.8) unstable; urgency=low
* /etc/zsh/zshrc: drop completion for lintian and linda as
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
55715d8
..
85a61fa
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-396,8
+396,8
@@
fi
# precmd () { setopt promptsubst; [[ -o interactive ]] && jobs -l;
# precmd () { setopt promptsubst; [[ -o interactive ]] && jobs -l;
- is4 &&
! [[ -n "$NOPRECMD"
]] && precmd () {
-
(( NOPRECMD > 0 ))
&& return 0
+ is4 &&
[[ -z $NOPRECMD
]] && precmd () {
+
[[ -n $NOPRECMD ]]
&& return 0
# just use DONTSETRPROMPT=1 to be able to overwrite RPROMPT
if [[ -z ${DONTSETRPROMPT} ]] ; then
if [ -n "$BATTERY" ] ; then
# just use DONTSETRPROMPT=1 to be able to overwrite RPROMPT
if [[ -z ${DONTSETRPROMPT} ]] ; then
if [ -n "$BATTERY" ] ; then
@@
-419,8
+419,8
@@
fi
# chpwd () => a function which is executed whenever the directory is changed
# preexec() => a function running before every command
# chpwd () => a function which is executed whenever the directory is changed
# preexec() => a function running before every command
- is4 &&
! [[ -n "$NOPRECMD"
]] && preexec () {
-
(( NOPRECMD > 0 ))
&& return 0
+ is4 &&
[[ -z $NOPRECMD
]] && preexec () {
+
[[ -n $NOPRECMD ]]
&& return 0
# set hostname if not running on host with name 'grml'
local HOSTNAME=$(hostname)
if [[ "$HOSTNAME" != grml ]] ; then
# set hostname if not running on host with name 'grml'
local HOSTNAME=$(hostname)
if [[ "$HOSTNAME" != grml ]] ; then