#!/usr/bin/fish # install-shared-config # # This script installs links to ~/... from ~/etc/config/..., which is # kept in version control. # You'll need fish ; to run this script # -- or translate it into bash if you wish. cd $HOME/etc/config for i in (find . -not -path "./.bzr*" -type f -printf "%Pn") set d (dirname $i) echo $i mkdir --parents "$HOME/$d" ln --symbolic "$HOME/etc/config/$i" "$HOME/$i" 2>/dev/null end