Skip to content

Releases: leongrdic/wsl-alias

custom mount directory support + argument path translation

05 Oct 13:41
Compare
Choose a tag to compare
  • support for custom mounting root path (get it from /etc/wsl.conf)
  • replace Windows-style paths in command arguments (like C:\Users) to WSL paths (/mnt/c/Users)
  • return exit code of executed command

(thanks to hustlahusky for above features)

  • fixed a cmd.exe error message when installing
  • added messages related to updating wsl-alias in installer script

fixed version

18 Sep 18:57
Compare
Choose a tag to compare

the wrong version was being downloaded lol

fixed installation regex

18 Sep 18:29
Compare
Choose a tag to compare

that regex created the default alias, so this bug made wsl-alias unusable
if you had installed v2.0 or v2.1, remove all aliases and reinstall wsl-alias using the script

bug fix

17 Sep 22:53
Compare
Choose a tag to compare

fixed passing path to wsl, syntax in alias template

new major release

17 Sep 16:42
Compare
Choose a tag to compare

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 under wsl
  • 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 default wsl user permission to mount a drive without requiring a password, this also results in /mnt directory requiring 777 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

  1. Backup your aliases from ~/.wsl/bin/win
  2. Delete the old version: rm -r ~/.wsl and remove the old alias directory from the Windows environment var PATH
  3. Install the new release, instructions in README
  4. Recreate your old aliases (if you just move your old aliases into the new directory, they won't work)

v1.2

27 Jun 07:57
Compare
Choose a tag to compare
  • fixed a bug that caused removable devices to be mounted as root, they now get mounted by the default wsl user
  • added a gitattributes file that fixes wrong newlines in batch file

typos

06 Dec 15:01
Compare
Choose a tag to compare

it happens to everyone

v1.0

11 Nov 20:04
Compare
Choose a tag to compare

we're finally in v1! easyWSLbash is now known as wsl-alias.
Fall Creators Update is now out and wsl-alias can now be used by any Windows 10 user.

this release introduces a major new feature: aliases

upgrading from v0.1:
back up your env.sh script and reinstall wsl-alias.
note: check the documentation because some changes aren't backwards compatible!

first release

14 Oct 16:21
Compare
Choose a tag to compare

fully working, tested on builds 16299 and 16215