osx - Bash Programming - Creating a Custom Terminal Command - Mac -


I tried to create custom commands for my terminal I'm running Mac OS X Edition 10.6.6.

Here are the steps:

  1. opened the terminal

  2. typed "ls -a "And saw" .bash_profile "file

  3. typed" vi .bash_profile "and saw that the file was empty

  4. The following was added at the top of the file: Vi session saved by typing: "test {} {echo hi}"

  5. 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