From 80a48be324774746dfd8752e2450350e0726b7df Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Sun, 20 Oct 2013 15:03:47 +0530 Subject: [PATCH] Changed scheme for loading key bindings --- share/tools/web_config/webconfig.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 39885ab6d..5926b6101 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -495,8 +495,12 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_get_bindings(self): """ Get key bindings """ - greeting, err = run_fish_cmd('fish -i') - out, err = run_fish_cmd('fish -i -c "bind"') + # Running __fish_config_interactive print fish greeting and + # loads key bindings + greeting, err = run_fish_cmd(' __fish_config_interactive') + + # Load the key bindings and then list them with bind + out, err = run_fish_cmd('__fish_config_interactive; bind') # Remove fish greeting from output out = out[len(greeting):]