Lets looks at bashrc
alias lls=ls
You can call lls -lash
like if you were calling ls -lash
. What you cant do is tie this to a project / repo.
alias ccm=clojure -M
You cant do ccm:my-repl
.
example:
ls
This wont work make example -lash
because the -lash
is a param to npm
not ls
. Taking in params can be done with variables but are annoyingly specific to each call, and more verbose.
same as above
"scripts": {
"lss": "ls",
},
npm run lss
is fine
npm run lss -lash
doesn't work because the -lash
is a param to npm
not ls
.
We have a deps.edn where every alias is defined independently instead of a large specific alias.
{:aliases {:env {:example "x"}}}
then we get calls like
clojure -M:env
And a makefile could be
dev:
clojure -M:env
For calling make dev
The issues is that you cant then do make dev --watch
or make dev:cider