Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 professional system and network administrators.

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer

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
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.