ZSH and Oh-My-Zsh on Windows Subsystem for Linux (WSL)

ZSH and Oh-My-Zsh on Windows Subsystem for Linux (WSL)


Make your WSL or WSL2 terminal awesome with Windows Terminal & oh-my-zsh Our default terminals do not have advanced functions, and that terminal work really looks boring. try to transfer the new terminal to the Windows Terminal

Goto Microsoft Store install Ubuntu and Windows Terminal

No alt text provided for this image
No alt text provided for this image

Now install the font,

No alt text provided for this image

After clicking the Download button you can choose the font your wish, i select this

No alt text provided for this image

Now Extract & Select all Right click and Install font

No alt text provided for this image

After Installed Open Windows Terminal, Open Windows Terminal now we can see choose we want to shell, we select the Ubuntu shell

No alt text provided for this image

Start Installing ZSH,

No alt text provided for this image
                    sudo apt update        

After Update Install ZSH Cmmand,

No alt text provided for this image
                 sudo apt install zsh -y        

Install Oh-My-Zsh Framework

No alt text provided for this image
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"        
No alt text provided for this image
                type,   Y         

Install Powerlevel10K

No alt text provided for this image
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k        

Update the theme name inside .zshrc file

Open vim editor and edit this

No alt text provided for this image
           vim ~/.zshrc
        

Open the file .zshrc at your home directory. Find the line of ZSH_THEME and replace with the new theme.already having this line, we want to change that

No alt text provided for this image

If you want to change this you change to go to this line using the arrow key and if you can't edit this press the insert button. and after edit, we want to save it. then you can press Esc button two time and :wq type this code and press enter automatically we goto the our terminal

             ZSH_THEME="powerlevel10k/powerlevel10k"        

Changed

No alt text provided for this image
No alt text provided for this image
                      :wq        

Automatically go to our terminal,

No alt text provided for this image

Now reload the terminal,

No alt text provided for this image

Now we get a new window

No alt text provided for this image

Our installed font is not configured, now we are goto configure our new font

Goto Terminal Setting,

No alt text provided for this image

Terminal setting Have the json file we choose our editor and edit this,

No alt text provided for this image

Update versions are different, Goto setting and click JSON file and edit that,

No alt text provided for this image

now we want our font name how to get that double click and open our font file and copy the font name

No alt text provided for this image

Now we can edit JSON file, Goto Ubuntu code line add new line

No alt text provided for this image
             "fontFace": "3270Condensed NFM"        

Now we can Restart and Configure another setting,

No alt text provided for this image

Now you can see our font is configured, you can compare

No alt text provided for this image

If you want to compare this to an earlier one, this didn't configure our font.

No alt text provided for this image

Now we are Goto another setting, we want to type our choice, choose y

No alt text provided for this image
                       y        

Select y,

No alt text provided for this image
     y        
No alt text provided for this image
              y        

Select y,

No alt text provided for this image
                     y        

Select your choice, I Select 3,

No alt text provided for this image
                3        

Select your choice, i Select 1,

No alt text provided for this image
                    1        

Select your choice, i Select 1,

No alt text provided for this image
                        1        

Select your choice, i Select 1,

No alt text provided for this image
                               1        

Select your choice, i Select 1,

No alt text provided for this image
                           1        

Select your choice, i Select 1,

No alt text provided for this image
                       1        

Select your choice, i Select 2,

No alt text provided for this image
                   2        

Select your choice, i Select 1,

No alt text provided for this image
                   1        

Select your choice, i Select 2,

No alt text provided for this image
                           2        

Select your choice, i Select 2,

No alt text provided for this image
                     2        

Select your choice, i Select n,

No alt text provided for this image
                      n        

Select your choice, i Select 3,

No alt text provided for this image
                                    n        

Select y

No alt text provided for this image
                                y        

Now are done,

No alt text provided for this image

要查看或添加评论,请登录

Dananjaya Fernando的更多文章

社区洞察

其他会员也浏览了