Update bashrc so display only updates in wsl.
This commit is contained in:
8
.bashrc
8
.bashrc
@ -45,8 +45,10 @@ if ! shopt -oq posix; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure display for vcxsrv
|
# Configure display for vcxsrv in wsl
|
||||||
export DISPLAY=`grep -oP "(?<=nameserver ).+" /etc/resolv.conf`:0.0
|
if [ $(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip') ]; then
|
||||||
|
export DISPLAY=`grep -oP "(?<=nameserver ).+" /etc/resolv.conf`:0.0
|
||||||
|
fi
|
||||||
|
|
||||||
# Configure emacs location
|
# Configure emacs location
|
||||||
export EMACSLOADPATH=~/Downloads/humacs:
|
export EMACSLOADPATH=~/Downloads/humacs:
|
||||||
@ -97,8 +99,6 @@ else bwu; fi
|
|||||||
|
|
||||||
# Try connect to my default tmate socket
|
# Try connect to my default tmate socket
|
||||||
if ! tmate -S /tmp/default.tmate attach; then
|
if ! tmate -S /tmp/default.tmate attach; then
|
||||||
|
|
||||||
tmate -S /tmp/default.tmate.tmate new-session -s default -n default -d
|
tmate -S /tmp/default.tmate.tmate new-session -s default -n default -d
|
||||||
tmate -S /tmp/default.tmate.tmate attach
|
tmate -S /tmp/default.tmate.tmate attach
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user