From 72e1e74a000dcae7f5e255cfef9a66e30e51b7a6 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 7 Apr 2009 20:42:05 +0200 Subject: remove warning when running emerge with reset_screen_title activated NASTY HACK: somehow emerge tinkers with the environment and reset_screen_title is not available anymore, so we disable it before running emerge, and initialize it again afterwards. --- bashrc/dist/gentoo/common.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bashrc/dist/gentoo') diff --git a/bashrc/dist/gentoo/common.sh b/bashrc/dist/gentoo/common.sh index 904c440..8ca2b64 100644 --- a/bashrc/dist/gentoo/common.sh +++ b/bashrc/dist/gentoo/common.sh @@ -1 +1,11 @@ +# NASTY HACK: somehow emerge tinkers with the environment and +# reset_screen_title is not available anymore, so we disable it before running +# emerge, and initialize it again afterwards +emerge() { + export PROMPT_COMMAND=true + trap true DEBUG + /usr/bin/emerge "$@" + init_preexec_hack +} + _load dist portdir -- cgit v1.2.3