Skip to content

Instantly share code, notes, and snippets.

@JacobDB
Last active February 13, 2019 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JacobDB/b4c10dac74d3e1a05000d014fdda8609 to your computer and use it in GitHub Desktop.
Save JacobDB/b4c10dac74d3e1a05000d014fdda8609 to your computer and use it in GitHub Desktop.
Alias used to open Atom from within Bash on WSL.
atom() {
target_path=$(wslpath -a -w $(readlink -f $1)) # resolve the path
(/mnt/c/Windows/System32/cmd.exe /C "atom.cmd $target_path" &> /dev/null) # open the path
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment