Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"bootstrap" bashrc for a WSL (Windows 10) and Docker workflow
# /home/mabigger/.bashrc.win -*-sh-*-
# ---- References
# https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
# https://sourceforge.net/projects/vcxsrv/
CEC=mabigger
sudo mount --bind /mnt/c /c
# ---- X11/Xserver display
DISPLAY=:0; export DISPLAY
DOCKER_HOST='tcp://localhost:2375'; export DOCKER_HOST
# ---- Go $HOME
HOME=/c/Users/${CEC}; export HOME
cd $HOME
. .bashrc
echo "Start the X11 server 'vcxsrv'... "
read a
# ---- Start X11 Linux apps
/bin/rm -f $HOME/.cache/.lxterminal-socket-
lxterminal --geometry=80x42 2>/dev/null &
sleep 2
emacs -fh --debug-init 2>/dev/null &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.