summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2014-04-14 14:40:12 +0000
committereadler <eadler@FreeBSD.org>2014-04-14 14:40:12 +0000
commit91efd84eb740dd4423713316ed7becc95c8574de (patch)
treee910bbde8d71cc65abdda3b0b5013b644a5fb76a /usr.bin
parent814793416f112e2b42230f35383ef018353b73e6 (diff)
downloadFreeBSD-src-91efd84eb740dd4423713316ed7becc95c8574de.zip
FreeBSD-src-91efd84eb740dd4423713316ed7becc95c8574de.tar.gz
units(1): parse config file after setting defaults
Parse the config file after setting the defaults to permit the user to change things (e.g., editing mode)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/units/units.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c
index 01a12ec..df2913f 100644
--- a/usr.bin/units/units.c
+++ b/usr.bin/units/units.c
@@ -724,11 +724,11 @@ main(int argc, char **argv)
inhistory = history_init();
el = el_init(argv[0], stdin, stdout, stderr);
- el_source(el, NULL);
el_set(el, EL_PROMPT, &prompt);
el_set(el, EL_EDITOR, "emacs");
el_set(el, EL_SIGNAL, 1);
el_set(el, EL_HIST, history, inhistory);
+ el_source(el, NULL);
history(inhistory, &ev, H_SETSIZE, 800);
if (inhistory == 0)
err(1, "Could not initalize history");
OpenPOWER on IntegriCloud