Following the PyCharm documentation,
create /usr/local/bin/pycharm
and populate it with:
#!/bin/sh
open -na "PyCharm.app" --args "$@"
Make sure to then also run: chmod +x /usr/local/bin/pycharm
.
PyCharm can then be opened in the current directory by executing: pycharm .
; see the PyCharm documentation for further
options.