Fixing wrong hh vs. hstr command name on WSL which resolves #236

This commit is contained in:
Martin Dvorak 2018-08-11 23:40:57 +02:00
parent ed34f8e9a0
commit f9ee27a783

View file

@ -198,7 +198,7 @@ static const char *INSTALL_BASH_STRING=
"\nfunction hstr_winwsl {"
"\n offset=${READLINE_POINT}"
"\n READLINE_POINT=0"
"\n { READLINE_LINE=$(</dev/tty hh ${READLINE_LINE:0:offset} 2>&1 1>&$hstrout); } {hstrout}>&1"
"\n { READLINE_LINE=$(</dev/tty hstr ${READLINE_LINE:0:offset} 2>&1 1>&$hstrout); } {hstrout}>&1"
"\n READLINE_POINT=${#READLINE_LINE}"
"\n}"
"\nif [[ $- =~ .*i.* ]]; then bind -x '\"\\C-r\": \"hstr_winwsl\"'; fi"