From cbe58c2b9e8d71c3a4dd06cea1429ddb001f78ab Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 5 Jul 2009 23:13:02 +0200 Subject: changed emerge alias to deal with PROMPT_COMMAND --- bashrc/dist/gentoo/common.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bashrc') diff --git a/bashrc/dist/gentoo/common.sh b/bashrc/dist/gentoo/common.sh index 8ca2b64..03d98ad 100644 --- a/bashrc/dist/gentoo/common.sh +++ b/bashrc/dist/gentoo/common.sh @@ -2,10 +2,8 @@ # 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 + local PROMPT_COMMAND=true + /usr/bin/emerge "$@" } _load dist portdir -- cgit v1.2.3