I use this in my .inputrc, which lets me keep all my bindings except for Ctrl-J when in TRAMP:
$if term=dumb # don't bind Control-J or it messes up TRAMP $else "\C-j": next-history $endif > On Jul 25, 2018, at 11:35 AM, Michael Albinus <[email protected]> wrote: > > Davor Cubranic <[email protected]> writes: > > Hi Davor, > >> I’d be very happy with adding something to the docs, as it took me a >> long time to find the reason. Most advice points to shell config files >> being the culprit, especially the prompt, and it was pure luck that I >> found one user’s report yesterday that tracked it down to his >> .inputrc. Even then, they didn’t narrow it to just the C-j binding, or >> how to fix it short of removal. So I think it might also be useful to >> have the “$if term=dumb” workaround in the documentation. > > I've added the following to the manual: > > --8<---------------cut here---------------start------------->8--- > And finally, bash’s readline shall not use key bindings like > ‘C-j’ to commands. Disable reading the readline > initialization file: > > [ $TERM = "dumb" ] && INPUTRC=/dev/null > --8<---------------cut here---------------end--------------->8--- > > I don't use bash myself; could you pls check whether this works as expected? > >> Thanks again, >> >> Davor > > Best regards, Michael. > _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
