Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Pushing my PS1 prompt over ssh

I like to have the username cyan and the host red in my laptop and server machine's PS1 like so:

PS1 example

The problem is, when I install a new server and SSH onto it, I have to set the PS1 every time.

Is there a way to use my personal PS1 when I SSH onto a new box? I'm using OS X Lion with the Apple Terminal application.

share|improve this question

migrated from serverfault.com Feb 29 '12 at 20:26

This question came from our site for system and network administrators.

marked as duplicate by studiohack Feb 29 '12 at 21:06

This question was marked as an exact duplicate of an existing question.

Just keep your dotfiles in a git repo and clone that out to any new system you need to use. Either that, or (if these servers are all on the same LAN) set up shared home directories via NFS.

share|improve this answer
    
That's basically what I do, only with rsync. – RyanScottLewis Feb 29 '12 at 21:53

Not the answer you're looking for? Browse other questions tagged .