1
I have two alias in user-aliases.cmd:
title=cmd /c RenameTab "$*"
ap5pro=ssh 170.63.170.72
When calling the first:
$ title "sometitle"
It works; the tab title changes to "sometitle"
AND when I call the second:
$ ap5pro
I got the ssh asking me for password, so everything is working.
How can I combine the above two comnands into one in user-aliases.cmd?
Update :
I did these :
ap5pro=RenameTab ap5pro $t ssh 170.63.170.72
and
ap5pro=RenameTab ap5pro & ssh 170.63.170.72
but only ssh is executed, never RenameTab.
What is the problem? Use
&
– Maximus – 2017-04-06T16:03:56.710loook at my update, it does not work with & or with $t. – Majid – 2017-04-06T18:45:34.790
when I did yours alias ap5pro2=cmd /c "ap5pro=RenameTab ap5pro & ssh 170.63.170.72" I got & was unexpected at this time – Majid – 2017-04-10T17:49:19.877
Sort of. Play with quotes if it's not working.
alias ap5pro="cmd /c "RenameTab ap5pro & ssh 170.63.170.72""
– Maximus – 2017-04-10T23:31:06.603