Previous command's last argument shortcut

LXTerminal is the standard terminal emulator of LXDE - http://wiki.lxde.org/en/LXTerminal
Locked
axelabs
Posts: 2
Joined: Tue Feb 21, 2012 9:36 pm

Previous command's last argument shortcut

Post 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.
axelabs
Posts: 2
Joined: Tue Feb 21, 2012 9:36 pm

Re: Previous command's last argument shortcut

Post 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.
Locked