Jump to content

Alias at startup?


Guest tslugmo
 Share

Recommended Posts

Guest tslugmo

I want to alias my ssh command at startup so all I have to type is "sshh" or something, instead of "ssh -l username site.domain.com" every time. Is this possible? I've added the alias line to my .xinitrc shell script, but it has no effect even though other commands are running at startup. What am I missing?

 

TIA,

tslug

Link to comment
Share on other sites

you would be better off putting the alias in .bashrc. it would then get loaded whenever you open up a terminal

 

i.e. (to make sure you have the right syntax :-) ):

 

alias sshh='ssh -l username site.domain.com'

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...