I've just installed pypy, and I've made a symlink from
/pypy to my pypy installation.
How can I turn this into a command, so that I can just type
instead of having to type
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
if you are on Snow leopard or on Lion the way to do it is as follows:
sudo touch pypy
then edit the pypy file (with vim, nano or whatever) to include the path to
the restart the terminal. For instance, I installed julia (http://julialang.org/) and I added a julia file in paths.d
$ cd /etc/paths.d $ ls 50-X11 MacGPG2 TeX TeXbin git julia $ cat julia /usr/local/julia
It depends on your shell. Check your $SHELL and $PATH variables
Symlinks should be executable by default, so you might just link your pypy to a directory already in your path. /usr/local/bin is a good choice for this sort of thing unless you have more intricate needs to separate things.