init.zsh

~/init.zsh
if [[ -f            "/mnt/c/Program Files/Microsoft VS Code/bin/code" \
  && ":$PATH:" != *":/mnt/c/Program Files/Microsoft VS Code/bin:"* ]]
then
  export       PATH="/mnt/c/Program Files/Microsoft VS Code/bin:$PATH"
fi

if [[ -d /mnt/c/bin4wsl && ":$PATH:" != *:/mnt/c/bin4wsl:* ]]; then
  export PATH="/mnt/c/bin4wsl:$PATH"
fi

if [[ -d "$HOME/bin" && ":$PATH:" != *":$HOME/bin:"* ]]; then
  export PATH="$HOME/bin:$PATH"
fi

if [[ -f /mnt/c/bin4wsl/win32yank.exe ]]; then
  alias clip=win32yank.exe
  alias clipo="win32yank.exe -o | sed 's/\\r$//'"
  alias clipi="win32yank.exe -o | sed 's/\\r$//' | win32yank.exe -i"
fi

# \r\n -> \n (dos2unix)
alias d2u="sed 's/\\r$//'"
# / -> \
alias s2b="sed 's/\\//\\\\/g'"
# \ -> /
alias b2s="sed 's/\\\\/\\//g'"
# Final New Line (for \n not \r\n)
alias fnl="perl -0777 -pe 's/\\n*\$/\\n/'"

alias lepo="env --file=$HOME/.env lepo"