0

Having issues creating an alias for the 'open' function within my gitconfig file. I am aware the 'open' function is exclusive to MacOSX, but figure I could still create a function for it.

The purpose of my function is to open the PyCharm application with a file path supplied by the user.

Definitely need assistance, thanks advance!

Below is what I saved within the gitconfig file:

charm = open -na "PyCharm CE.app" --args 

The error message I receive in return is:

expansion of alias 'charm' failed; 'open' is not a git command

What is interesting is if I type out the command with the file path I want to open it works fine. However, fails when trying to create an alias.

  • 1
    Git aliases are (supposed to be) *Git* commands unless they start with `!`. If they start with `!` they're fed to the shell. – torek Dec 02 '22 at 03:21

0 Answers0