I am looking for instructions or a script to copy my fish config files to a new computer via scp. Or at least build a tar file with all of them.

  • 1
    Welcome to Super User. Please note we're not a script or code-writing service. We can help if you edit your question to indicate what you've tried (including any attempted scripts, etc.) and specifically where you're stuck. Oct 8 '19 at 22:36
  • Not an answer to your question, but if you use multiple computers regularly, you'll find putting your config files in git greatly helps keep your various machines in sync. Oct 9 '19 at 14:39

All your fish config files are in ~/.config/fish or a subdirectory of that directory. So all you need to do is scp -pr ~/.config/fish remote_host:. Or tar cf fish_cfg.tar .config/fish.

  • that was my first thought. After copying configs like this I see that for instance, the command prompt looks different.
    – krokodil
    Oct 8 '19 at 23:29
  • one problem is I see is that there is file fishd.paco where paco is my current computer name. Obviously the name of other computer is different. Another problem is that I am using OMG which casues error source: Error encountered while sourcing file “/home/lord/.local/share/omf/init.fish”
    – krokodil
    Oct 8 '19 at 23:34
  • The fishd.paco file contains universal vars. Which, for most users, is just the vars that define the color theme. In fish 3.0 the name no longer includes the hostname or ethernet address. If you can't upgrade just capture the output of set -u on the source system. Then set -u those vars on the destination system. I don't use third-party plugin managers like OMF. But, obviously, all you need to do is copy ~/.local/share/omf. Oct 10 '19 at 1:43

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.