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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...