Last active
January 19, 2022 11:03
-
-
Save ljmccarthy/194b228ecb10f564be0c4bc252fc9658 to your computer and use it in GitHub Desktop.
WSL Bash Setup - Remove Windows path, set DISPLAY for local X11 forwarding, add alias for clip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove Windows path | |
export PATH="$HOME/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" | |
# Set DISPLAY for local X11 forwarding | |
export DISPLAY="`grep nameserver /etc/resolv.conf | sed 's/nameserver //'`:0" | |
# Alias for copying to Windows clipboard | |
alias clip='/mnt/c/Windows/System32/clip.exe' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment