#!/bin/sh if [ $# -gt 0 ]; then /mnt/c/Windows/explorer.exe "$(wslpath -w "$@")" else /mnt/c/Windows/explorer.exe fi # The Windows Explorer binary seems to always return 1, even though it # succesully opens the desired folder. So, executing `true` here is just a # hack so that we have a nice return code from our script. true