mbland / go-script-bash

Framework for writing modular, discoverable, testable Bash scripts
ISC License
95 stars 16 forks source link

Allows users to declare custom aliases #247

Open nkakouros opened 5 years ago

nkakouros commented 5 years ago

cc: @mbland

This PR adds a GO_ALIAS_CMDS_EXTRA array that the user can define to add their own aliases. My use case was that I grew tired of typing go vim and failing all the time (instead of go run vim).

I also added the ability for "go-script" aliases to be expanded if they are bash aliases.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.01%) to 95.01% when pulling 384915403b04ac790fea32bf6dce8a5c26c2fa2d on tterranigma:extra_aliases into 292e0803074eb538ab8633a657c53d3a975ba922 on mbland:master.