I am setting up a ConEmu + Cygwin environment. I created a task, when I launched it on a tab, the task will launch a batch file, which, in turn, will change the directory in cygwin and run
bash --login -i my_ssh_entry_script.sh
Inside my_ssh_entry_script.sh it will read the configuration file in my home directory and then print a menu so that I can choose which host should connect. And finally
... exec ssh -p$port $userhost
Now I can work on the selected machine in the same conemu tab. It works great. And the script also works on a Linux machine.
But there is a slight flaw. I can not change the title of the tab. I tried changing it to:
.... exec $(cygpath ${ConEmuDir})/ConEmu.exe /cmd ssh -p$port $userhost -cur_console:t:$title
But this will always create a new tab. Any suggestion to use it? Thanks ~
bash cygwin conemu
jayven
source share