dotfiles/scripts/wsl_get_display.sh
2023-04-04 18:08:58 +09:00

4 lines
143 B
Bash

#!/bin/sh
VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
export DISPLAY=$VETHER_IP:10.0