mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
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)
This commit is contained in:
parent
647be2c3a9
commit
cada55282a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264459
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user