[asdf-devel] add-cldir helper script
Robert Goldman
rpgoldman at sift.net
Thu Mar 13 14:33:19 UTC 2014
Daniel Herring wrote:
> Re: [asdf-devel] Alternate default lisp system location
> On Wed, 12 Mar 2014, Zach Beane wrote:
>
>> Is there some easy way, supported by ASDF, to make a system known to
>> ASDF if you have its pathname?
>
> I added the following function to my ~/bashrc shortly after migrating
> to the new ASDF config mechanism.
>
> add-cldir() {
> cfg="$HOME/.config/common-lisp/source-registry.conf.d/10-$USER.conf"
> grep $PWD $cfg || echo "(:directory \"$PWD/\")" >> $cfg
> }
>
> This could easily be converted to a standalone shell script and batch
> file, suitable for all major platforms.
This is suitable for updating *your own configuration*. It's not suitable for updating someone else's configuration, because you have no way of knowing if they are using the XDG config directory as opposed to some other configuration method.
So it won't work for Xach's purposes.
More information about the asdf-devel
mailing list