Skip to content

Instantly share code, notes, and snippets.

@bodziek666
Created January 24, 2019 22:10
Show Gist options
  • Save bodziek666/597de6ef70f36b38b0ba2f10abe9c2fe to your computer and use it in GitHub Desktop.
Save bodziek666/597de6ef70f36b38b0ba2f10abe9c2fe to your computer and use it in GitHub Desktop.
Windows 10 bashrc customizations
# configuration from above wasn't modified so it's not posted here
# Custom PATH
export PATH=$PATH:/mnt/c/Applications:/mnt/c/Applications/mpv
# SSH Agent
if [ -z "$(pgrep ssh-agent)" ]; then
rm -rf /tmp/ssh-*
echo "Starting ssh-agent"
eval $(ssh-agent -s)
else
export SSH_AGENT_PID=$(pgrep ssh-agent)
export SSH_AUTH_SOCK=$(find /tmp/ssh-* -name 'agent.*')
fi
# Xorg for Windows
export DISPLAY=:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment