Skip to content

Instantly share code, notes, and snippets.

@ljmccarthy
Last active January 19, 2022 11:03
Show Gist options
  • Save ljmccarthy/194b228ecb10f564be0c4bc252fc9658 to your computer and use it in GitHub Desktop.
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
# 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