Bash on WSL is great.
But if you want a little extra from your terminal you can install zsh and oh-my-zsh pretty easily.
- Ubuntu WSL
From a bash WSL terminal;
$ sudo apt install zshCheck the version, oh-my-zsh requires 4.3.9;
$ zsh --version
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)We'll want to use zsh as our default shell;
$ sudo chsh -s $(which zsh)The above should locate zsh and set it as the default shell.
Let's check;
$ echo $SHELLIf the above doesn't return a path to zsh then we can use another approach.
- Open your bashrc file;
$ vim ~/.bashrc - Add the following to the top of the file;
bash -c zsh
Now we have zsh as our default shell.
Simply execute the following;
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"One of the most popular themes is Agnoster.
Installing it is easy, firstly you'll need the Powerline Fonts
sudo apt-get install fonts-powerlineThen delve into your ~/.zshrc file and edit;
Old
------------------------
ZSH_THEME="robbyrussell"
New
------------------------
ZSH_THEME="agnoster"You can minimalise things a little by removing the user@hostname section of the prompt.
Into your ~/.zshrc again and add;
DEFAULT_USER="$USER"Active plugins are described in the plugins section of your ~/.zshrc
A comprehensive list can be found here
🚀
thx a lot dood, ❤️ 😄