Created
December 27, 2018 14:32
"bootstrap" bashrc for a WSL (Windows 10) and Docker workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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