Skip to content

Commit

Permalink
windows.md: Delete outdated notes
Browse files Browse the repository at this point in the history
1.  Use cascadia code instead of Consolas.

2.  All Windows versions before Windows Build 16215 is now EOL, so "use
    Windows 16215 or later" is now redundant.

    Reference: https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet

3.  Use https://github.com/microsoft/terminal instead of wsltty.

4.  `unsetopt BG_NICE` is not necessary anymore.

5.  microsoft/WSL#1671 is fixed now.

6.  Add comments to the steps which seem unnecessary
  • Loading branch information
simnalamburt committed Dec 18, 2019
1 parent c2711c9 commit 98fa476
Showing 1 changed file with 5 additions and 41 deletions.
46 changes: 5 additions & 41 deletions docs/windows.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
Setup note
========
### A. Basic customization
1. Remap [Caps Lock → Control][caps]
1. Remap [Caps Lock Control](https://gist.github.com/simnalamburt/90965dcb09cec6b82320/raw/58a9f61143273d5226be352d2c29ecf738e5bffd/capslock-to-control.reg)

2. Install [Consolas for Powerline], or [Consolas NF](https://github.com/Znuff/consolas-powerline)

3. Disable snap assistant
1. Disable snap assistant

<img width=500 src="https://raw.githubusercontent.com/simnalamburt/.dotfiles/resources/disable-snap-assist.png">

4. Disable Activity History. It has not only a privacy issue, but also a disturbance at the Task View screen.
1. Disable Activity History. It has not only a privacy issue, but also a disturbance at the Task View screen.

<img width=500 src="https://raw.githubusercontent.com/simnalamburt/.dotfiles/resources/disable-activity-history.png">

Expand Down Expand Up @@ -43,11 +41,6 @@ Setup note
<br>
### C. Setup Windows Subsystem for Linux
1. Update your Windows to the latest one. Make sure that you're using Windows
build 16215 or later, so that you can install latest WSL via Windows Store.
Otherwise, you'll get WSL with outdated Ubuntu 14.04 even if you succeed.
1. [Install WSL.](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
1. Edit `/etc/profile`, `/etc/bashrc`, or `/etc/bash.bashrc` and uncomment or add the line below:
Expand All @@ -56,9 +49,7 @@ Setup note
umask 022
```
1. Install [wsltty].
1. Place or symlink your `.minttyrc` to `%APPDATA%\wsltty\config`.
<!-- TODO: Is it still necessary? -->
1. Install packages.
Expand All @@ -75,31 +66,4 @@ Setup note
# Reference https://github.com/Microsoft/BashOnWindows/issues/846#issuecomment-242910947
```
1. If you're going to use **zsh**, create `~/.zshenv` and add the lines below:
```zsh
# See https://github.com/Microsoft/BashOnWindows/issues/1887
unsetopt BG_NICE
```
**NOTE**: Do not try to run haskell program (e.g. [chips], [stack], etc) in WSL.
Since GHC 8.0.1, haskell binaries require 1TB of virtual memory. With most
modern generalised operating systems, it's completely OK because of [memory
overcommitment] but Windows Subsystem for Linux does not support this yet. You
need to build your own GHC binary with a [`--disable-large-address-space`]
configure option to workaround this problem. This problem will be fixed in
Windows build 17063.
###### References
- [Microsoft/BashOnWindows#1671](https://github.com/Microsoft/BashOnWindows/issues/1671)
[chips]: https://github.com/xtendo-org/chips
[stack]: https://www.haskellstack.org
[memory overcommitment]: https://en.wikipedia.org/wiki/Memory_overcommitment
[`--disable-large-address-space`]: https://ghc.haskell.org/trac/ghc/ticket/10791
[wsltty]: https://github.com/mintty/wsltty
[bundler]: https://bundler.io/
[ripgrep]: https://github.com/BurntSushi/ripgrep
[caps]: https://gist.github.com/simnalamburt/90965dcb09cec6b82320/raw/58a9f61143273d5226be352d2c29ecf738e5bffd/capslock-to-control.reg
[Consolas for Powerline]: https://gist.github.com/simnalamburt/90965dcb09cec6b82320/raw/58a9f61143273d5226be352d2c29ecf738e5bffd/consola.ttf
[`umask`]: http://man7.org/linux/man-pages/man2/umask.2.html
<!-- TODO: Is it still necessary? -->

0 comments on commit 98fa476

Please sign in to comment.