Declined @@key alias at beginning of partial command line

May 20, 2008
10,623
81
Syracuse, NY, USA
I don't know how folks use the @@key automatic aliases, but it's hard to come up with a scenario where I'd want text added at the end of a partial command line and then the command line automatically executed. If others do that, I'd like to hear how.

So I wonder if it couldn't be made to insert the alias (plus a space) at the beginning of the command line. I thought of that because I have @@Ctrl-o=OPTION and I wanted to /uCtrl-o to check for updates.
 

samintz

Scott Mintz
May 20, 2008
1,421
13
Solon, OH, USA
The only one I've ever defined is @@Alt-F4=exit. I've tried to use insert-only aliases to do magic command line editing, but they never seem to do what I want.
 
May 20, 2008
10,623
81
Syracuse, NY, USA
The only one I've ever defined is @@Alt-F4=exit. I've tried to use insert-only aliases to do magic command line editing, but they never seem to do what I want.
I use a similar one.
Code:
alias @@Alt-F4 `^e@exit`
It clears a command line in progress and keeps "exit" out of the history.

I just noticed that Alt-F4 (without an alias) closes a console in Windows 10.