Use the windows CMD commands from the typed

1

I use Cmder or ConEmu and am trying to set some of them to get the typed commands from what I already typed. For example, if I enter the following sequence of commands:

cd Sites\site1

ssh user@ip

mysql

And then type UP (setinha up), the last command entered, in the case mysql , until then everything is correct. But if I type ssh and then type UP , the command that will come will be mysql , not ssh user@ip .

My goal is, as I type ssh , when typing UP come the last commands that start with ssh , as it is in the Ubuntu terminal.

This is very useful to me because I use ssh on several different servers, with different IPs, so I do not have to decorate and retype all IPs. Sometimes I need to use a command that user again months ago, and that's what I used when I was using Ubuntu.

    
asked by anonymous 10.09.2018 / 20:10

1 answer

0

I believe that doskey with macros can be useful, configure your commands to repeat them when combinations of keys in the macro. I would have to test.

No ConEmu

    
01.12.2018 / 16:43