Skip to content

Instantly share code, notes, and snippets.

@omar2205
Last active February 23, 2020 08:40
Show Gist options
  • Save omar2205/d6ecfa223ec95ddec552292e3db051af to your computer and use it in GitHub Desktop.
Save omar2205/d6ecfa223ec95ddec552292e3db051af to your computer and use it in GitHub Desktop.
Fixes WSL (Windows 10 subsystem for linux) weird green colors
#!/bin/bash
# fixes the weird green background for dirs
dircolors -p > ~/.dircolors
# STICKY_OTHER_WRITABLE 30;42
# OTHER_WRITABLE 34;42
sed -i -e 's/STICKY_OTHER_WRITABLE 30;42/STICKY_OTHER_WRITABLE 01;34/g' ~/.dircolors
sed -i -e 's/OTHER_WRITABLE 34;42/OTHER_WRITABLE 01;34/g' ~/.dircolors
bash
@omar2205
Copy link
Author

omar2205 commented Feb 23, 2020

curl -s https://gist.githubusercontent.com/omar2205/d6ecfa223ec95ddec552292e3db051af/raw/66b2cb51b7dd8f127df0ab8c419222bd22600cfe/fix_wsl_colors.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment