Skip to content

bilalbozkurt/zsh-on-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Using ZSH on a Windows Computer

header

  • Install WSL https://docs.microsoft.com/en-us/windows/wsl/install
  • Install Ubuntu from Windows Store. https://www.microsoft.com/store/productId/9PDXGNCFSCZV
  • Run Ubuntu and configure for the first time. On Ubuntu:
    • sudo apt install zsh
    • Install oh-my-zsh. Details: https://github.com/ohmyzsh/ohmyzsh
      sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
      
    • Clone my oh-my-zsh-config from https://github.com/bilalbozkurt/oh-my-zsh-config
    • Type nano .zshrc and edit this line with your username: export ZSH="/home/bilal/.oh-my-zsh"
    • Copy .oh-my-zsh and .zshrc to ~/
    • Clone powerlevel10k. Details: https://github.com/romkatv/powerlevel10k
      git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
      echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
      
    • To make ZSH default shell, type nano ~/.bashrc and add following lines to the beginning:
      #Launch ZSH
      if [ -t 1 ]; then
      exec zsh
      fi
      
  • On Windows, install Windows Terminal https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701
  • Open Terminal -> Settings -> Profiles -> Add a new profile -> Select Ubuntu or WSL -> Duplicate
  • Change name and tab title to ZSH
  • Run a ZSH shell.
  • Type ls pic1
  • Let's remove unreadable bright highlights.
    LS_COLORS='ow=01;36;'
    export LS_COLORS
    
  • Type ls again. pic2
  • But it is not permanent. Let's make it permanent.
  • Type nano ~/.zshrc and add following lines after export ZSH="..."
    #Remove LS directory highlights
    LS_COLORS='ow=01;36;'
    export LS_COLORS
    
  • Make the shell default

Remarks

  • Your installed apps on Windows will work but you need to specify its extension.
  • It uses Windows Subsystem for Linux (WSL) and its shell.

About

Use ZSH on Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages