I tried to create custom commands for my terminal I'm running Mac OS X Edition 10.6.6.
Here are the steps:
-
opened the terminal
-
typed "ls -a "And saw" .bash_profile "file
-
typed" vi .bash_profile "and saw that the file was empty
-
The following was added at the top of the file: Vi session saved by typing: "test {} {echo hi}"
-
Then, I came back to the terminal and " Test ", although nothing happened (i.e., I did not see" hi ").
So, what am I doing wrong? Thanks! Try to re-evaluate the file by typing
source .bash_profile
Comments
Post a Comment