cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.82k stars 2.02k forks source link

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

Open scil opened 1 year ago

scil commented 1 year ago

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

DRSDavidSoft commented 1 year ago

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?

scil commented 1 year ago

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.