From 98fa4768ad53f2dac93bf8c2a63128fb36cb83bc Mon Sep 17 00:00:00 2001 From: Hyeon Kim Date: Thu, 19 Dec 2019 05:16:03 +0900 Subject: [PATCH] windows.md: Delete outdated notes 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. https://github.com/Microsoft/BashOnWindows/issues/1671 is fixed now. 6. Add comments to the steps which seem unnecessary --- docs/windows.md | 46 +++++----------------------------------------- 1 file changed, 5 insertions(+), 41 deletions(-) diff --git a/docs/windows.md b/docs/windows.md index fdfa3977..20376207 100644 --- a/docs/windows.md +++ b/docs/windows.md @@ -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 -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. @@ -43,11 +41,6 @@ Setup note
### 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: @@ -56,9 +49,7 @@ Setup note umask 022 ``` -1. Install [wsltty]. - -1. Place or symlink your `.minttyrc` to `%APPDATA%\wsltty\config`. + 1. Install packages. @@ -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 +