Set alias in terminal

Answered

How can I set an alias for python to abbreviate common commands?

e.g:

alias pm="python manage.py"
3 comments
Comment actions Permalink

Hi, doesn't .bashrc or .bash_profile work?

0
Comment actions Permalink

On Windows, apparently it doesn't read either of the two, while with MINGW they work correctly.

.bashrc and .bash_profile are placed at the root of my user's folder.

BTW I had noticed the same on PHPStorm

0
Comment actions Permalink

Hi Info, do you mean PyCharm built-in terminal? By default it uses cmd on Windows and it is expected to ignore .bashrc of course. See Settings | Tools | Terminal. Or did you change it to some other shell?

0

Please sign in to leave a comment.