Add this to your .bashrc
, .zshrc
(or equivalent)
# Get the IP address of the host from /etc/resolv.conf
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2)
# Set the display path
export DISPLAY=$WSL_HOST:0.0
Add this to your .bashrc
, .zshrc
(or equivalent)
# Get the IP address of the host from /etc/resolv.conf
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2)
# Set the display path
export DISPLAY=$WSL_HOST:0.0
[wsl2] | |
memory=8GB | |
swap=0 | |
localhostForwarding=true | |
processors=8 | |
# This enables black hole discovery on WSL boot | |
kernelCommandLine=net.ipv4.tcp_mtu_probing=2 |
# Stolen from https://eplt.medium.com/5-minutes-to-install-imagemagick-with-heic-support-on-ubuntu-18-04-digitalocean-fe2d09dcef1 | |
# Confirmed working on WSL2 | |
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install build-essential autoconf libtool git-core | |
sudo apt-get build-dep imagemagick libmagickcore-dev libde265 libheif | |
cd /usr/src/ | |
sudo git clone https://github.com/strukturag/libde265.git | |
sudo git clone https://github.com/strukturag/libheif.git |
{ | |
"Keys": { | |
"Special": { | |
"NonMovement": { | |
"9": "Tab", | |
"13": "Enter", | |
"16": "Shift", | |
"17": "Control", | |
"18": "Alt", | |
"19": "Pause", |
[merge] | |
tool = meld | |
[mergetool "meld"] | |
cmd = meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" --output \"$MERGED\" | |
path = "/usr/bin/meld" | |
[diff] | |
tool = meld | |
guitool = meld | |
prompt = false | |
[difftool "meld"] |
From This other answer on the same thread
Based on Chris Johnsen's answer:
I added this line to the [alias]
section of my git config file (~/.gitconfig
):
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
{ | |
"parser": "@typescript-eslint/parser", | |
"extends": [ | |
"airbnb", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:@typescript-eslint/eslint-recommended" | |
], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true |
I hereby claim:
To claim this, I am signing this object: