Make `explorer work without arguments as well
This commit is contained in:
parent
cf3344ab48
commit
8d9faec315
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
#!/bin/sh
|
||||
/mnt/c/Windows/explorer.exe "$(wslpath -w "$@")"
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue