You are not logged in.
I'd like to bind Ctrl-J to a command in BASH, specifically I'd like to do this:
bind '"\C-j":"clear; ls *\n"'But it seems that because Ctrl-J is the linefeed key, the escape sequence \n calls whatever Ctrl-J is bound to, so the result of pressing Ctrl-J is:
clear; ls *clear; ls *clear; ls *clear; ls *clear; ls * ...Is there any way to bind Ctrl-J and retain the meaning of \n? Or is there an alternative to \n?
Last edited by maw09 (2012-03-07 03:23:23)
Offline
Offline
Thanks that works perfectly!
Offline