aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools/web_config
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-08-20 19:07:35 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-08-22 12:00:16 -0700
commitd9bf53c6e563d22072bf2e18e8d6bc0027661709 (patch)
tree33fd3c127fe61420bbb0298904eee3399d2121b8 /share/tools/web_config
parentf549ada16c6d6165908c3e98f52bf64561808838 (diff)
Show a non-zero status in the fish_config prompt
When selecting a prompt with fish_config, render the prompt with a non-zero status so the user knows what it looks like.
Diffstat (limited to 'share/tools/web_config')
-rwxr-xr-xshare/tools/web_config/webconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py
index 9e0b9ac0..d7400f78 100755
--- a/share/tools/web_config/webconfig.py
+++ b/share/tools/web_config/webconfig.py
@@ -618,13 +618,13 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_get_current_prompt(self):
# Return the current prompt
prompt_func, err = run_fish_cmd('functions fish_prompt')
- result = self.do_get_prompt('builtin cd "' + initial_wd + '" ; fish_prompt', prompt_func.strip(), {'name': 'Current'})
+ result = self.do_get_prompt('builtin cd "' + initial_wd + '" ; false ; fish_prompt', prompt_func.strip(), {'name': 'Current'})
return result
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
- cmd = text + "\n cd \"" + initial_wd + "\" \n fish_prompt\n"
+ cmd = text + "\n builtin cd \"" + initial_wd + "\" \n false \n fish_prompt\n"
return self.do_get_prompt(cmd, text.strip(), extras_dict)
def parse_one_sample_prompt_hash(self, line, result_dict):