mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Changed scheme for loading key bindings
This commit is contained in:
parent
bc9e2266be
commit
80a48be324
1 changed files with 6 additions and 2 deletions
|
@ -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):]
|
||||
|
|
Loading…
Reference in a new issue