comfysage / hayashi

:seedling: a tiny distro-independent package manager written in Go.
3 stars 1 forks source link

pack using symlink instead of installing #4

Closed comfysage closed 3 months ago

comfysage commented 1 year ago

Hayashi currently installs binaries and man files using install. This is mostly usefull when repos won't always be available or hayashi tidy (not implemented yet) is used.

In some cases using symlinks instead might be more usefull.

Proposed feature (false by default):

pack:
  - path: path/to/file
    type: type
    symlink: true

This would use

ln -s $(repo_dir)/path/to/file ~/.hayashi/pack/type/

instead of

install $(repo_dir)/path/to/file ~/.hayashi/pack/type/