Skip to content

Commit fb82166

Browse files
committed
Update README.md
1 parent 2a1840d commit fb82166

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WSL2 Init Script
22

3-
The script I use to streamline my fresh WSL2 setup.
3+
The script I use to streamline my fresh WSL2 (Ubuntu 22.04.1 LTS) setup.
44

55
## Usage
66

@@ -27,3 +27,39 @@ Run the script:
2727
```shell
2828
./wsl-init-script.sh
2929
```
30+
31+
Restart WSL instance from PowerShell:
32+
33+
```powershell
34+
wsl --shutdown
35+
ubuntu
36+
```
37+
38+
### Quick install
39+
40+
```shell
41+
git clone https://github.com/overflowy/wsl-init-script.git && \
42+
cd wsl-init-script && \
43+
chmod +x wsl-init-script.sh && \
44+
./wsl-init-script.sh
45+
```
46+
47+
## What's included
48+
49+
- Permanently change the hostname to `$NEW_HOSTNAME`
50+
- Change DNS to Cloudflare (1.1.1.1/1.0.0.1)
51+
- Install all packages listed in `$PACKAGES` and `$DEPENDENCIES` (using **apt**)
52+
- Install **pipx** and all the packages listed in `$PIPX_PACKAGES`
53+
- Install **fish** shell
54+
- Set it as the default shell
55+
- Install **fisher** plugin manager
56+
- Install all plugins listed in `$FISHER_PLUGINS`
57+
- Set up some helpful aliases (such as `cheat`)
58+
- Set up fzf keybindings
59+
- Install zoxide
60+
- Install **asdf** and all the plugins listed in `$ASDF_PLUGINS` along with the latest version for each plugin
61+
- Fix various annoyances
62+
63+
## Why
64+
65+
Whenever I feel that my WSL2 instances has become bloated, I just run `wsl --unregister Ubuntu` and re-run the script. Nothing feels better than a clean, fresh distro.

wsl-init-script.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ end
9797
9898
set -g fish_greeting
9999
set -gx EDITOR micro
100-
set -U FZF_LEGACY_KEYBINDINGS 0
101100
set PATH $PATH /home/deneb/.local/bin
102101
103102
function fzf-help

0 commit comments

Comments
 (0)