3

Risking asking a possibly duplicate here but could not get any relevant answers. I wish to use my local system's .bash_profile and .vimrc on all the remote hosts I log in to. Is there an easy way to temporarily use them on the remote hosts or to copy the files aliasing ssh clubbed with scp somehow that I don't have to copy them manually every-time.

Thanks.

migrated from serverfault.com Apr 3 '18 at 19:56

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

  • People who rely on .vimrc or .bash_profile tricks usually don't manage many systems. – kubanczyk Apr 3 '18 at 16:20
  • 2
    @kubanczyk I do and I like to have my alias and customizations available on all of them. – Dexter Apr 3 '18 at 16:25
  • @kubanczyk Have you an advice related to this challenge? What would you recommend instead? Please share some knowlegde, thanks! – Fabian Apr 4 '18 at 13:06
  • @Fabian I don't customize these files. Every complex command is a one-liner somewhere in my shell history or in a textual snippet file. – kubanczyk Apr 4 '18 at 13:25
2

Unfortunately there is no straightforward solution, here are a few ideas though: How to bring .vimrc around when I SSH?

  • Sounds like there is no easy way out of this. :/ – Dexter Mar 29 '18 at 7:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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