WSL2: Add "DISPLAY" variable to .zshrc

This commit is contained in:
har0ke 2025-01-19 19:49:22 +01:00
parent 8dd1763a3c
commit b27574b14f

1
.zshrc
View File

@ -105,4 +105,5 @@ source $ZSH/oh-my-zsh.sh
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
DISPLAY=$(ip route | awk '/^default/{print $3; exit}'):0
PATH="$HOME/.dotfiles/scripts:${PATH}"