From: Ian Kelling Date: Wed, 7 May 2014 03:49:44 +0000 (-0700) Subject: fix debconf warning mesages in emacs X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=9b7f564b73290b98af5a76d0e207fe474eec59fe fix debconf warning mesages in emacs --- diff --git a/.bashrc b/.bashrc index 067782e..e8651b5 100644 --- a/.bashrc +++ b/.bashrc @@ -86,6 +86,14 @@ if [[ $- == *i* ]]; then export PAGER=cat export MANPAGER=cat stty echo + # debconf occasionally spews messages about wanting to initialize dialog + # and falling back to readline, since our terminal is dumb, then does nothing, + # This is a long standing bug. Here is the fix. + if [[ $DISPLAY ]]; then + export DEBIAN_FRONTEND=gnome + else + export DEBIAN_FRONTEND=readline + fi else stty werase undef lnext undef stop undef start undef # terminal keys: C-c, C-z. the rest defined by stty -a are, at least in