I am trying to open a file using Atom from bash on Windows. So what I did was I added an alias in my .bash_profile like this:

alias atom="/mnt/c/Users/Mido/AppData/Local/atom/atom.exe"

So let's say I am on my Desktop and I try opening a file called index.html by using: atom index.html. What this actually does is it creates a new file called index.html in the directory where atom.exe is located. Weirdly enough, I followed the exact same procedure for Sublime text, and when I do subl index.html, I am getting the file that I want. Why is this not working with Atom?

  • 1
    Atom for Windows doesn't work in bash for Windows. Kinda obvious but sometimes people need to be reminded of obvious things. – GabrielaGarcia May 20 at 20:04
  • Use the full path of that file. – Biswapriyo May 20 at 20:27
  • Hey Biswapriyo I tried doing that it didn't do it – user10796158 May 20 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.