new major release
changes
- feature: support for relative paths within commands, e.g. if you typed
b nano ..\file.txt
(or used TAB to autocomplete the command) in Windows command line or PowerShell, the backward slashes\
will automatically be converted to forward slashes/
to reference the same file underwsl
- moved aliases outside of the
wsl
directory (new location is%userprofiles%\wsl-alias
), this is to avoid the following issue: microsoft/WSL#3487 - removed the privileged userl;
wsl-alias
now (optionally) adds the defaultwsl
user permission tomount
a drive without requiring a password, this also results in/mnt
directory requiring777
permissions (which is also set by the installer) - rewritten parts of the code; much nicer with better understandable variable names
- changed the install path to
~/.wsl-alias
a note about wslpath
: i was planning to implement it into this release to convert the current working directory from windows
into the wsl
path but came across this issue: microsoft/WSL#3246
since i'm using a veracrypt container most of the time, this solution wouldn't be suitable for me (and a lot of other people) so that's why i'll wait for wslpath
to be fixed
Upgrading from v1
- Backup your aliases from
~/.wsl/bin/win
- Delete the old version:
rm -r ~/.wsl
and remove the old alias directory from the Windows environment var PATH - Install the new release, instructions in README
- Recreate your old aliases (if you just move your old aliases into the new directory, they won't work)