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:
b5870cf
)
/etc/zsh/zshrc: use transient_rprompt only with zsh version 4
0.2.48
author
Michael Prokop
<mika@grml.org>
Sat, 21 Apr 2007 22:13:34 +0000
(
00:13
+0200)
committer
Michael Prokop
<mika@grml.org>
Sat, 21 Apr 2007 22:13:34 +0000
(
00:13
+0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
755b599
..
03c27d1
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-443,7
+443,9
@@
fi
# precmd () { setopt promptsubst; [[ -o interactive ]] && jobs -l;
# precmd () { setopt promptsubst; [[ -o interactive ]] && jobs -l;
- setopt transient_rprompt # make sure to use right prompt only when not running a command
+ # make sure to use right prompt only when not running a command
+ is4 && setopt transient_rprompt
+
is4 && [[ -z $NOPRECMD ]] && precmd () {
[[ -n $NOPRECMD ]] && return 0
# allow manual overwriting of RPROMPT
is4 && [[ -z $NOPRECMD ]] && precmd () {
[[ -n $NOPRECMD ]] && return 0
# allow manual overwriting of RPROMPT
@@
-1027,7
+1029,7
@@
If you want to use xinit anyway please call \"/usr/bin/xinit\"."
}
_dchange() { _files -W /usr/share/doc -/ }
compdef _dchange dchange
}
_dchange() { _files -W /usr/share/doc -/ }
compdef _dchange dchange
-
+
# use "uchange <package-name>" to view upstream's changelog of the package:
uchange() {
if [ -r /usr/share/doc/${1}/changelog.gz ] ; then
# use "uchange <package-name>" to view upstream's changelog of the package:
uchange() {
if [ -r /usr/share/doc/${1}/changelog.gz ] ; then