<commit_before># These customizations are only added when running under Windows Subsystem for Linux
# Under WSL, /proc/sys/kernel/osrelease looks something like: 4.4.0-43-Microsoft

if grep -q Microsoft /proc/sys/kernel/osrelease; then

  # Aliases
  alias devbox-update-wsl="sudo ansible-playbook ~/.devbox/linux/devenv-playbook-wsl.yml"
  alias dswitch="/mnt/c/Program \ Files/Docker/Docker/DockerCli.exe -SwitchDaemon"
  alias explorer="explorer.exe"
  alias minecraft-server="docker run -d --rm -p 25565:25565 -p 25575:25575 -e EULA=TRUE -e ONLINE_MODE=FALSE -v 'C:\\temp\\minecraftdata':/data itzg/minecraft-server"

  # I should blog more often
  function blog() {
    if type code > /dev/null; then
      pushd ~/code/noelbundick/noelbundick-hugo
      code . </dev/null &>/dev/null & disown
      popd
    fi
  } >/dev/null

  # Don't 'nice' background jobs (https://github.com/Microsoft/BashOnWindows/issues/1838)
  unsetopt BG_NICE

  # Map folders on C: to my home folder
  ln -sfn /mnt/c/code ~/code
  ln -sfn /mnt/c/temp ~/temp

  # Fire up the socat <-> npiperelay for Docker on launch
  if [[ ! -a /var/run/docker.sock ]]; then
    (sudo docker-relay &)
  fi

  # Use Windows path for Go
  export GOPATH=/mnt/c/code/go<commit_msg>Remove old aliases<commit_after># These customizations are only added when running under Windows Subsystem for Linux
# Under WSL, /proc/sys/kernel/osrelease looks something like: 4.4.0-43-Microsoft

if grep -q Microsoft /proc/sys/kernel/osrelease; then

  # Aliases
  alias explorer="explorer.exe"
  alias minecraft-server="docker run -d --rm -p 25565:25565 -p 25575:25575 -e EULA=TRUE -e ONLINE_MODE=FALSE -v 'C:\\temp\\minecraftdata':/data itzg/minecraft-server"

  # I should blog more often
  function blog() {
    if type code > /dev/null; then
      pushd ~/code/noelbundick/noelbundick-hugo
      code . </dev/null &>/dev/null & disown
      popd
    fi
  } >/dev/null

  # Don't 'nice' background jobs (https://github.com/Microsoft/BashOnWindows/issues/1838)
  unsetopt BG_NICE

  # Map folders on C: to my home folder
  ln -sfn /mnt/c/code ~/code
  ln -sfn /mnt/c/temp ~/temp

  # Fire up the socat <-> npiperelay for Docker on launch
  if [[ ! -a /var/run/docker.sock ]]; then
    (sudo docker-relay &)
  fi

  # Use Windows path for Go
  export GOPATH=/mnt/c/code/go
{'fraction_non_alphanumeric': 0.12489233419465978, 'fraction_numerical': 0.024978466838931956, 'mean_word_length': 3.0683012259194395, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5737937', 'n_tokens_mistral': 910, 'n_tokens_neox': 830, 'n_words': 233}