WSL2: Add "DISPLAY" variable to .zshrc
This commit is contained in:
parent
8dd1763a3c
commit
b27574b14f
1
.zshrc
1
.zshrc
@ -105,4 +105,5 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
|
|
||||||
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
|
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
|
||||||
|
|
||||||
|
DISPLAY=$(ip route | awk '/^default/{print $3; exit}'):0
|
||||||
PATH="$HOME/.dotfiles/scripts:${PATH}"
|
PATH="$HOME/.dotfiles/scripts:${PATH}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user