The command works fine on Linux but on OS X Mountain Lion when I'm doing:
bash: !: event not found
Is there any way to do it the same on OS X?
This is because you haven't set the
In your Bash, write:
Then, the command should run as expected.
You could of course add this line to your