Changed scheme for loading key bindings

This commit is contained in:
Siteshwar Vashisht 2013-10-20 15:03:47 +05:30
parent bc9e2266be
commit 80a48be324

View file

@ -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):]