From 44db046d57efd3c0bfc59c01957d9d79e104266c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 22 Mar 2008 00:43:50 +0100 Subject: [PATCH] zshenv: extend and update $ADDONS handling --- debian/changelog | 1 + etc/zsh/zshenv | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.1.4