mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 02:27:03 +01:00
Windows stuff
This commit is contained in:
parent
7cc8cbbf87
commit
8046973348
2 changed files with 31 additions and 2 deletions
|
|
@ -71,8 +71,30 @@ Linux
|
||||||
Windows
|
Windows
|
||||||
-------
|
-------
|
||||||
|
|
||||||
* Install [Windows Terminal](https://github.com/microsoft/terminal)
|
* Install [Git Bash](https://www.atlassian.com/git/tutorials/git-bash), if not already installed
|
||||||
* other steps TBD
|
* 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)
|
* continue to [Common Install Steps](#common-install-steps)
|
||||||
|
|
||||||
Common Install Steps
|
Common Install Steps
|
||||||
|
|
|
||||||
|
|
@ -157,5 +157,12 @@ if [ -f "$HOME/.config/starship.toml" ]; then
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
fi
|
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
|
# opt out of et telemetry data upload
|
||||||
ET_NO_TELEMETRY=1
|
ET_NO_TELEMETRY=1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue