Page 1 of 1

Previous command's last argument shortcut

Posted: Tue Feb 21, 2012 10:02 pm
by axelabs
Terminals like aterm, gnome-terminal, Terminal, agetty, mingetty allow you to recall the previous shell command's last argument with the alt-. (alt-dot) key combination. This unfortunately does not work in LXTerminal. Is there a way to enable this? This is similar to using the bash $_ variable but already evaluated while still editing your new command. Thanks in advance.

Re: Previous command's last argument shortcut

Posted: Tue Feb 21, 2012 10:55 pm
by axelabs
This has something to do with the readline library as noted by Nick in a response to a smiliar problem. Doing escape followed by alt-dot works (Esc Alt+.). I'll be studying 'man readline' to see if I can add anything to the inputrc file to bypass the escape.