cmder icon indicating copy to clipboard operation
cmder copied to clipboard

Question: how to active one existing tab/console and change the dir to somewhere

Open scil opened this issue 3 years ago • 2 comments

Question

I often open zsh console from total command. because I use oh-my-zsh in .zhrc, it's a little slow for zsh to be ready.

I wonder, if there's some method to open only one zsh console/tab. Every time I would like the zsh console, it just activate an existing zsh and change the dir to somewhere.

Checklist

  • [X] I have read the documentation and made sure what I'm looking for isn't present, or is unclear.
  • [X] I have searched for similar issues, and either this question wasn't asked before, or I didn't find any that describe my question.

scil avatar Nov 02 '22 00:11 scil

Seems like a good idea, it should use a persistent single instance of zsh and only cd to the new directory. I'll see if this can be implemented.

What should happen in case you would want to open a second tab of zsh? Should this overwrite the working directory of the last zsh tab opened?

DRSDavidSoft avatar Nov 02 '22 07:11 DRSDavidSoft

Thank you.

I follow this https://dominikrys.com/posts/zsh-in-git-bash-on-windows/ to use zsh.

Every time a new zsh console starts up, I should wait it ready for some seconds, as zsh executes .zshrc which run oh-my-zsh . If I can use the existing console, I can work immedietly.

I think I can start a zsh console when os windows starts up, and when I do with totalcommand, I could open the existing zsh, cd to current dir and do something quickly.

scil avatar Nov 02 '22 11:11 scil