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:
49bae75
)
zshrc: Disable vcs_info for restricted shells
author
Frank Terbeck
<ft@grml.org>
Thu, 21 Oct 2010 08:46:33 +0000
(10:46 +0200)
committer
Frank Terbeck
<ft@grml.org>
Thu, 21 Oct 2010 08:46:33 +0000
(10:46 +0200)
debian/changelog
patch
|
blob
|
history
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/debian/changelog
b/debian/changelog
index
b29f61d
..
acfd08c
100644
(file)
--- a/
debian/changelog
+++ b/
debian/changelog
@@
-5,6
+5,7
@@
grml-etc-core (0.3.84) UNRELEASED; urgency=low
* zshrc: Fixied a bug in whatwhen(); found be Joerg Woelke.
* zshrc: Added a note about modifying the zshrc file when it is
used as ~/.zshrc
* zshrc: Fixied a bug in whatwhen(); found be Joerg Woelke.
* zshrc: Added a note about modifying the zshrc file when it is
used as ~/.zshrc
+ * zshrc: Disable `vcs_info' in restricted shells.
* grmlzshrc.t2t: Remove references to git-get-*().
[ Carsten Hey ]
* grmlzshrc.t2t: Remove references to git-get-*().
[ Carsten Hey ]
@@
-25,7
+26,7
@@
grml-etc-core (0.3.84) UNRELEASED; urgency=low
* zshrc: Remove get{air,gizmo,skype,skypebeta,xlite} functions.
* vimrc: Enable "persistent undo" if possible.
* zshrc: Remove get{air,gizmo,skype,skypebeta,xlite} functions.
* vimrc: Enable "persistent undo" if possible.
- -- Frank Terbeck <ft@grml.org>
Mon, 27 Sep 2010 22:00:25
+0200
+ -- Frank Terbeck <ft@grml.org>
Thu, 21 Oct 2010 10:43:38
+0200
grml-etc-core (0.3.83) unstable; urgency=low
grml-etc-core (0.3.83) unstable; urgency=low
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
7d63e64
..
83dc68b
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-1995,6
+1995,10
@@
else
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat "%b${RED}:${YELLOW}%r"
fi
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat "%b${RED}:${YELLOW}%r"
fi
+if [[ -o restricted ]]; then
+ zstyle ':vcs_info:*' enable false
+fi
+
# }}}
# command not found handling {{{
# }}}
# command not found handling {{{