![]() An example of globbing, in zsh on Bash on Ubuntu on Windows Further reading So, after a bit of customization, you can start to enjoy the features of zsh. Please be aware that unicode characters in zsh in Bash on Ubuntu on Windows aren't really supported by now, so some themes may not be for you. To help a bit, there are some screenshots shown in the zsh wiki. Zsh is a bit theme-happy, so you will find more than 100 of them in the default installation. Update 6: Be aware that this theme also requires 'git' to be installed to display branch information, so you should do a sudo apt-get install git if you did not already. From your freshly installed and started zsh, you just issue the command that is shown at the oh-my-zsh website:Īfter that, you can configure your plugins (I use git and ubuntu) and themes (I use this custom one). A well-known repository of zsh customizations with nice defaults is Oh-My-Zsh, and it brings a cornucopia of themes, plugins and features with it. CustomizationĪ plain zsh is quite boring, and there are a ton of useful things for zsh to leverage, so customization is key. You should try it out directly by quitting Bash and restarting Bash on Ubuntu on Windows and see how it launches zsh directly. When Bash starts up, it will check if it has a terminal attached to stdout (the test -t 1 part) and then it executes zsh. To do so, I added the following little snippet at the very beginning of the ~/.bashrc file: ![]() I wanted zsh to start directly when I open Bash on Ubuntu on Windows, because I am too lazy to always launch it manually. You can directly try it out by simply calling zsh from your shell to open a new zsh from Bash. This will use the default package manager apt of the Ubuntu that runs on the Linux Subsystem on Windows to install the zsh package. ![]() ![]() You start bash and issue the following command: Installation of zsh on Bash on Ubuntu on Windows is as easy as installing it on plain Ubuntu. Now, while having bash on my fingertips again, my colleagues' suggestion came back to my mind, and I tried to use zsh again. Now the Windows 10 Anniversary update is out, and it comes with " Bash on Ubuntu on Windows". Since then I switched to a Surface Book which I happily preferred over OS X mac OS and mainly use cmdr as my shell. But why? Some time ago, when I was still using a Mac, one of my colleagues suggested to use zsh instead of bash. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |