0

Every time I open my .bashrc file with atom it assumes it is plain text and I need to tell it the file is actually a shell scripts to format and highlight it properly. Is there way to permanently tell atom always assume .bashrc file is a shell script?

1

You can add the following to your Atom configuration (config.cson):

"*":
  core:
    customFileTypes:
      "source.shell": [
        "*.bashrc"
      ]

Make sure not to overwrite your existing configuration and nest the customFileTypes key correctly, since CSON is an indentation-sensitive format.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.