Last active
February 13, 2019 15:42
-
-
Save JacobDB/b4c10dac74d3e1a05000d014fdda8609 to your computer and use it in GitHub Desktop.
Alias used to open Atom from within Bash on WSL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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