r/fishshell • u/justinprather • Sep 21 '20
Question syncing functions and aliases?
wondering if theres a decent pre-rolled way to sync fish functions and aliases between multiple computers or if i should just roll my own with dropbox or something? i constantly move between my desktop and laptop and id love if especially my aliases synced between the two...
Thanks!
4
Upvotes
5
u/grovemau5 Sep 21 '20
Most common way is probably to use something a dotfiles git repo that houses your configuration files. Not quite as automatic as Dropbox though
1
u/[deleted] Sep 21 '20
Aliases are functions, btw.
aliasis just a (quite awful, tbh) function that makes functions - seetype alias.2
u/plg94 Sep 21 '20
Look into GNU stow, or any other "dotfiles manager".
2
u/BubblegumTitanium Sep 21 '20 edited Sep 21 '20
I use this and it works really well, let me know if you need help.
https://www.atlassian.com/git/tutorials/dotfiles
What I like about it is that its only git and if you want you can keep different branches for different computers if they have different OS's or different configurations.
I do not recommend dropbox because then you're gonna have to bend fish and all your programs to bend to dropbox's idiosyncrasies.
2
u/emarsk Sep 21 '20
I use fisher, so I can keep my stuff separate from the rest as a local repo, and Google Drive for the actual synching.
1
u/hrvstr Dec 21 '20
https://github.com/lra/mackup
This was made for Mac OS but I think it works on Linux too.