

If you want to change to the original state, follow the same steps, edit the. Press Ctrl + X to exit nano.įrom now on whenever you open the Bash application on Windows, it will automatically open Zsh shell. Once done, press Ctrl + O and press Enter to save the changes. If you want to execute another shell, you only need to replace "zsh" with that shell command. This is to avoid causing problems with other software: You can only add "exec zsh", but the following commands will ensure Bash only opens Zsh when you open the Bash window. bashrc file in nano, run the following command:Īdd the following lines to the file. Bash will run the command in this file every time it starts. However, you can set Bash to automatically convert to Zsh whenever you open. To run any Linux software, you must open the Bash window and run the software there.

How does Bash automatically run Zsh?īecause of the way Microsoft executes this feature, you cannot open Zsh directly and bypass Bash. To remove the zsh shell and return to Bash, run the following command:Įxit 4. Enter "2" to create a configuration profile containing default settings. You will be prompted to set up the first Zsh process and create a configuration profile the first time you open Zsh. For example, to start using Zsh from Bash, you just need to enter:

To open Zsh or other shells after installation is complete, simply enter the shell name in the Bash command prompt (Bash prompt) and press Enter. For example, if you want to install Fish shell, run the following command: If you want to use another Shell, just specify the Shell name instead of writing Zsh. Apt-get will automatically download and install Zsh from repositories of Ubuntu. Press "y" when asked and press Enter to continue. To install Zsh, open the Bash shell and run the command: To do this, use apt-get, just like when you install any package on Ubuntu Linix. This process will install the Ubuntu user space environment on Windows, including the Bash shell.Īfter installing Bash, you just need to install the Shell you want to use in Bash. Zsh integrates many useful features of both bash, ksh and tcsh, and offers many other features.īefore installing the Shell of your choice, the first thing you need to do is activate Windows subsystem for Linux and install Bash. Zsh is a shell program designed to interact, and Zsh is also a powerful scripting language. You can set Bash to automatically execute Zsh every time Bash starts. Since Insider Build 14342, Zsh shell has been running on Windows 10. You can use the Bash shell to run Zsh or any shell you want. Bash Shell is integrated into Windows 10 Anniversary Update version is just a compatible class to run Linux software on Windows operating system.
