abathur / resholve

a shell resolver? :) (find and resolve shell script dependencies)
MIT License
231 stars 5 forks source link

Better support for alias definitions #5

Closed abathur closed 4 years ago

abathur commented 4 years ago

I'm adding and promptly closing this issue to document progress towards an initial release. This work is already complete and merged to master.

For posterity: Prior to merging https://github.com/abathur/resholved/commit/a347d9dba2ca7077a1718e922a256dc45a8a5393, resholved recognized alias definitions, but didn't attempt to resolve commands inside them. This commit introduces the ability to resolve them. Because resolving aliases is "wrong" under some conditions (i.e., shell scripts designed to be sourced into a user profile, where they should most-likely resolve from PATH at runtime) this is gated by a flag --resolve-aliases.