mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Comment on why we run 'false' in web_config.py
This commit is contained in:
parent
d9bf53c6e5
commit
f9f773cc28
1 changed files with 2 additions and 0 deletions
|
@ -617,6 +617,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||
|
||||
def do_get_current_prompt(self):
|
||||
# Return the current prompt
|
||||
# We run 'false' to demonstrate how the prompt shows the command status (#1624)
|
||||
prompt_func, err = run_fish_cmd('functions fish_prompt')
|
||||
result = self.do_get_prompt('builtin cd "' + initial_wd + '" ; false ; fish_prompt', prompt_func.strip(), {'name': 'Current'})
|
||||
return result
|
||||
|
@ -624,6 +625,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||
def do_get_sample_prompt(self, text, extras_dict):
|
||||
# Return the prompt you get from the given text
|
||||
# extras_dict is a dictionary whose values get merged in
|
||||
# We run 'false' to demonstrate how the prompt shows the command status (#1624)
|
||||
cmd = text + "\n builtin cd \"" + initial_wd + "\" \n false \n fish_prompt\n"
|
||||
return self.do_get_prompt(cmd, text.strip(), extras_dict)
|
||||
|
||||
|
|
Loading…
Reference in a new issue