I'm trying to bind
Alt-s to an SSH command that is quite complex and requires nested double quotes.
bind '"\es":"ssh -t me@myserver \"echo \\"hi\\"; echo \\"bye\\"\""'
But when I execute the keybinding half the string is truncated:
ssh -t me@myserver "echo \"hi\";
How do I get the entire string to be inserted? I don't know if this is a problem with the space after the semi colon, or with all the double-escaping of double-quotes.
Note: I don't want to use
bind -x style because that one a) doesn't print the actual command b) executes it without any ability to manually modify the line before executing it by pressing enter.