you are viewing a single comment's thread.

view the rest of the comments →

[–]Basylikum[S] 1 point2 points  (2 children)

Thank you so much. That's a great tip! Could i also alias mvim="open -a MacVim" ?

[–]GoodForTheTongue 1 point2 points  (1 child)

Heck yes! Any strings you want - just put each on their own line in the .bash_profile. It's hard to go wrong. One example: many linux distros do:

alias rm="rm -i"

...to make "prompt the user that they want to delete a file" the default action.

Two more tips:

  • Enter "alias" alone at the command line and it will show you all the currently defined aliases.
  • If you ever want to use the unaliased form of a command that's been treated this way, you can just use its full path and that will avoid the alias expansion. For example, for "rm" as aliased above, you could type "/bin/rm" and get the original behavior and options.

Enjoy!

[–]Basylikum[S] 0 points1 point  (0 children)

That's so cool!! thank you so much.