Reputation: 81
I want to customize the command line. (I am new to OS X world and I am trying to figure things out)
I did a ls -a
and figured out that it does not have .bashrc
or .profile
, so I created the .profile
by myself.
I just wanted to accomplished a simple task, but don't not know how to make it work.
In my .profile
file, I have one simple line that looks like this
export abc = "ssh [email protected]"
basically, I can just type abc
and it connects me to the tux with credential of abc
. It did not work and when I tried
echo abc
to debug it, it showed abc
instead of showing "ssh [email protected]"
so I guess it did not recognize my profile.
Any solution will be appreciated.
Upvotes: 0
Views: 33
Reputation: 41155
You want an alias. This is what you put in .profile:
alias abc="ssh [email protected]"
Additionally, to list defined aliases, use the command
alias
Upvotes: 2