Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 718  / 3 Years ago, mon, may 3, 2021, 3:10:34

I just recently discovered that pressing alt-tab on a console window allows me to autocomplete from the last commands and parameters I used.

Very useful!



But when using SSH from Windows this feature is obviusly lost.



Is there a way to remap this function to another key(s)?


More From » 11.10

 Answers
4

This is the action tied to readline's function dynamic-complete-history.



You can redefine such action in ~/.inputrc, for example to Alt-z with



$include /etc/inputrc
"ez": dynamic-complete-history


where e means ESC and is equivalent to an Alt modifier.



Also take into account this other possible solution: How to quickly store and access often used commands?


[#40487] Tuesday, May 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;