mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
Shell+LibLine: Support HISTCONTROL environment variable
This is implemented in Line::Editor meaning not only the Shell will respect it, but also js, Debugger etc. Possible values are "ignorespace", "ignoredups" and "ignoreboth", as documented in Shell-vars(7), for now. The default value for the anon user (set in .shellrc) is "ignoreboth".
This commit is contained in:
parent
4a4b1b1131
commit
d412fbdcf3
3 changed files with 21 additions and 1 deletions
|
@ -3,3 +3,5 @@
|
|||
# IFS controls what $(...) (inline evaluate) would split its captured
|
||||
# string with. the default is \x0a (i.e. newline).
|
||||
IFS="\x0a"
|
||||
|
||||
export HISTCONTROL="ignoreboth"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue