Function rg::args::wsl_prefix

source ·
fn wsl_prefix() -> Option<String>
Expand description

Returns a value that is meant to fill in the {wslprefix} variable for a user given hyperlink format. A WSL prefix is a share/network like thing that is meant to permit Windows applications to open files stored within a WSL drive.

If a WSL distro name is unavailable, not valid UTF-8 or this isn’t running in a Unix environment, then this returns None.

See: https://learn.microsoft.com/en-us/windows/wsl/filesystems