Windows stuff

This commit is contained in:
Fred Klassen 2023-02-08 12:36:32 -08:00
commit 8046973348
No known key found for this signature in database
GPG key ID: E9E2149793BDE17E
2 changed files with 31 additions and 2 deletions

View file

@ -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

View file

@ -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