Skip to content

A WSL utility to open files or URIs in Windows applications

License

Notifications You must be signed in to change notification settings

marveloo/wslopen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wslopen

wslopen is a handy utility for WSL that opens a file or URI in the user's preferred Windows application for files or URIs of that type.

Installation

Installing or updating locally for the current user:

mkdir -p ~/.local/bin && wget -O ~/.local/bin/wslopen 'https://github.com/marveloo/wslopen/raw/main/wslopen' && chmod +x ~/.local/bin/wslopen

Or globally on the machine:

sudo wget -O /usr/local/bin/wslopen 'https://github.com/marveloo/wslopen/raw/main/wslopen' && sudo chmod a+x /usr/local/bin/wslopen

Example Usage

# Open an image file in the default image viewing application on Windows
$ wslopen /tmp/foobar.png

# Edit a text file in Notepad
$ wslopen 'file:///tmp/foobar.txt'

# Open the current folder in Windows Explorer
$ wslopen .

# Visit a webpage in the user's default browser on Windows
$ wslopen 'https://www.example.com/?foo=bar'

# Compose an email to foo in the preferred Windows email client
$ wslopen 'mailto:[email protected]'

License

wslopen is an open-source tool licensed under the MIT license.

About

A WSL utility to open files or URIs in Windows applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages