In fact, I was thinking of writing a GNU Stow drop in replacement in
Suckless-style C when I find some time (GNU Stow is written in Perl, I
believe).

I am always a bit confused when I hear about GNU stow. Does it provide more feature than this:

ETC=$(cd "${0%/*}" && pwd)
find "$ETC" -name .git -prune -o -path "$ETC/.*" | while IFS='' read -r path
do
        [ -d "$path" ] && mkdir -p       "$HOME/${path#$ETC}"
        [ -f "$path" ] && ln -sf "$path" "$HOME/${path#$ETC}"
done

Reply via email to