diff --git a/README-MY-SETUP.md b/README-MY-SETUP.md index e43ea4f78..c8fb0fb0a 100644 --- a/README-MY-SETUP.md +++ b/README-MY-SETUP.md @@ -71,8 +71,30 @@ Linux Windows ------- -* Install [Windows Terminal](https://github.com/microsoft/terminal) -* other steps TBD +* Install [Git Bash](https://www.atlassian.com/git/tutorials/git-bash), if not already installed +* Optionally install Windows Terminal + * from an Admin PowerShell: `choco install microsoft-windows-terminal` + * add [Git Bash to Windows Terminal](https://linuxhint.com/add-git-bash-windows-terminal/) +* Install _Zsh_ (not oh-my-zsh) using [these instructions](https://dominikrys.com/posts/zsh-in-git-bash-on-windows/) + * you may need to download [PeaZip](https://peazip.github.io/zst-compressed-file-format.html) to extract the file + * once .zst is extracted and copied to `/c/Program\ Files/Git/` open an admin Git Bash and do ... + + ```(shell) + fklassen@FREDKLASSENA265 MINGW64 ~ + $ cd / + fklassen@FREDKLASSENA265 MINGW64 / + $ tar xvf zsh-5.9-2-x86_64.pkg.tar + ``` + + * for `.bashrc` I prefer this entry so I can start the bash shell from zsh + + ```(shell) + if [ -t 1 ] && [ "$0" = "/usr/bin/bash" ]; then + exec zsh + fi + ``` + + * continue with instructions to install Zsh * continue to [Common Install Steps](#common-install-steps) Common Install Steps diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index a2585409c..30bc258a9 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -157,5 +157,12 @@ if [ -f "$HOME/.config/starship.toml" ]; then eval "$(starship init zsh)" fi +# stuff for Windows +if [ "$MSYSTEM" = "MINGW64" ]; then + zstyle :compinstall filename "$HOME/.zshrc" + autoload -Uz compinit + compinit +fi + # opt out of et telemetry data upload ET_NO_TELEMETRY=1 \ No newline at end of file