fn -sync [d1 d2]{ rsync -azh --delete --info=progress2,stats ~/.config/$d1/ ~/.config/$d2/ } fn -save [d]{ -sync $d $d.save } fn -restore [d]{ -sync $d.save $d } edit:add-var viv-save~ []{ -save vivaldi } edit:add-var viv-restore~ []{ -restore vivaldi } edit:add-var vivd-save~ []{ -save vivaldi-developer } edit:add-var vivd-restore~ []{ -restore vivaldi-developer }