diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-04-07 20:42:05 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-04-07 20:45:35 +0200 |
commit | 72e1e74a000dcae7f5e255cfef9a66e30e51b7a6 (patch) | |
tree | 888a2772269e0b33233a4c786e5451bbbea20a6c /bashrc/dist/gentoo | |
parent | 0f5a762d3ed35ea4b141ba342671f57a35bb0f19 (diff) | |
download | dotfiles-72e1e74a000dcae7f5e255cfef9a66e30e51b7a6.tar.gz dotfiles-72e1e74a000dcae7f5e255cfef9a66e30e51b7a6.tar.xz dotfiles-72e1e74a000dcae7f5e255cfef9a66e30e51b7a6.zip |
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.
Diffstat (limited to 'bashrc/dist/gentoo')
-rw-r--r-- | bashrc/dist/gentoo/common.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |