iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7e7a9e8
)
fix debconf warning mesages in emacs
author
Ian Kelling
<ian@iankelling.org>
Wed, 7 May 2014 03:49:44 +0000
(20:49 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Thu, 4 May 2017 23:40:14 +0000
(16:40 -0700)
.bashrc
patch
|
blob
|
history
diff --git
a/.bashrc
b/.bashrc
index 067782edfcf92bdada68956f5ba39960b099cdee..e8651b544b641d15e6836f43170fe7f5630450d6 100644
(file)
--- a/
.bashrc
+++ b/
.bashrc
@@
-86,6
+86,14
@@
if [[ $- == *i* ]]; then
export PAGER=cat
export MANPAGER=cat
stty echo
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
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