Skip to content

Instantly share code, notes, and snippets.

@Vulwsztyn
Last active November 11, 2025 14:25
Show Gist options
  • Select an option

  • Save Vulwsztyn/1a2c4a68ff037f745e276266270c0d8b to your computer and use it in GitHub Desktop.

Select an option

Save Vulwsztyn/1a2c4a68ff037f745e276266270c0d8b to your computer and use it in GitHub Desktop.
wsl2, zsh, oh-my-zsh, oh-my-posh setup instructions

WSL

  1. Download Ubuntu 24.04 LTS from Microsoft Store
  2. Turn Windows features on or off check Windows Subsystem for Linux (on the bottom)

ZSH

  1. sudo apt install zsh -y
  2. chsh -s $(which zsh)

Oh My Zsh

  1. ssh-keygen -t rsa -b 4096
  2. curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
  3. sudo apt install git -y && sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  4. git config --global core.autocrlf false
  5. git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  6. git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  7. sudo apt install build-essential procps curl file git autojump
  8. sudo ubuntu-drivers install nvidia:535
  9. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - https://brew.sh/
  10. eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
  11. brew install glab git-lfs eza helm elixir gh olets/tap/zsh-abbr fzf helix rbenv jenv openjdk@8 openjdk@11 go ruff just maven az jq graphviz gradle autojump uv
  12. RUBY_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib) --with-openssl-dir=$(brew --prefix openssl)" rbenv install 3.4.4
  13. git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k - https://github.com/romkatv/powerlevel10k
  14. eval "$(jenv init -)"
  15. jenv add /home/linuxbrew/.linuxbrew/Cellar/openjdk@11/11.0.27/
  16. jenv add /home/linuxbrew/.linuxbrew/Cellar/openjdk@8/1.8.0-452/
  17. rbenv global 3.4.4
  18. curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
  19. sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
  20. curl https://get.volta.sh | bash - https://volta.sh/
  21. volta install node pnpm

Oh My Posh - outdated I think

  1. Install-Module oh-my-posh -Scope CurrentUser
  2. code $PROFILE add Import-Module oh-my-posh and (in next line) oh-my-posh --init --shell pwsh --config ~/jandedobbeleer.omp.json | Invoke-Expression
  3. Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
  4. https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf > Double click > Install
  5. Open Hyper → Edit → Preferences and change the value of fontFamily to MesloLGS NF.
  6. With Admin privilages: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
  7. choco install fzf
  8. https://www.powershellgallery.com/packages/PSFzf
  9. to $PROFILE Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion }
  10. PowerShell/PSReadLine#687 (comment)
  11. C:\Program Files\WindowsPowerShell\Modules\PSReadline\2.0.0
  12. Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
  13. Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment