From: Michael Prokop Date: Fri, 21 Mar 2008 23:43:50 +0000 (+0100) Subject: zshenv: extend and update $ADDONS handling X-Git-Tag: 0.3.50 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=refs%2Ftags%2F0.3.50;p=grml-etc-core.git zshenv: extend and update $ADDONS handling --- diff --git a/debian/changelog b/debian/changelog index bb95a8e..595693f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ grml-etc-core (0.3.50) unstable; urgency=low [ Michael Prokop ] * zshrc: update function git-get-plaindiff() so it works around the "generating..." bug + * zshenv: extend and update $ADDONS handling [ Frank Terbeck ] * zshrc: add new bindings: '^xP' and '^xp' for diff --git a/etc/zsh/zshenv b/etc/zsh/zshenv index 6fd51b0..4285f4f 100644 --- a/etc/zsh/zshenv +++ b/etc/zsh/zshenv @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Dez 06 23:21:08 CET 2007 [mika] +# Latest change: Sat Mar 22 00:37:25 CET 2008 [mika] ################################################################################ # This file is sourced on all invocations of the shell. # It is the 1st file zsh reads; it's read for every shell, @@ -58,7 +58,9 @@ if [[ -r /etc/gentoo-release ]] ; then else # support extra software in special directory outside of squashfs environment in live-cd mode if [[ -f /etc/grml_cd ]] ; then - [[ -d /cdrom/addons/ ]] && ADDONS=':/cdrom/addons/' + [[ -r /cdrom/addons ]] && ADDONS=':/cdrom/addons' + [[ -r /live/image/addons ]] && ADDONS=':/live/image/addons' + [[ -r /etc/grml/my_path ]] && ADDONS=":$(cat /etc/grml/my_path)" fi if (( EUID != 0 )); then