dotfiles/scripts/custom_env.sh
2023-06-29 10:06:32 +09:00

10 lines
227 B
Bash
Executable File

#!/bin/bash
# configurable parameter
JAEUS_ENV="WSL"
if [[ $JAEUS_ENV == "WSL" ]];then
VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
export DISPLAY=$VETHER_IP:10.0
fi