Skip to content

Instantly share code, notes, and snippets.

@JacobDB
Last active September 27, 2018 20:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JacobDB/a5b6d422d6cc3f007c4305d9415ae312 to your computer and use it in GitHub Desktop.
Save JacobDB/a5b6d422d6cc3f007c4305d9415ae312 to your computer and use it in GitHub Desktop.
Alias used to open File Explorer from within Bash on WSL.
open() {
target_path=$(wslpath -a -w $(readlink -f $1)) # resolve the path
/mnt/c/Windows/explorer.exe $target_path # open the path
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment