mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03:00
Do not show the history variable in fish_config
The history variable may be so large that it hangs the browser, as spotted in #7714. Omit this from the variable list.
This commit is contained in:
@@ -973,6 +973,9 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||
if name in vars:
|
||||
vars[name].exported = True
|
||||
|
||||
# Do not return history as a variable, it may be so large the browser hangs.
|
||||
vars.pop('history', None)
|
||||
|
||||
return [
|
||||
vars[key].get_json_obj()
|
||||
for key in sorted(vars.keys(), key=lambda x: x.lower())
|
||||
|
||||
Reference in New Issue
Block a user