I have a bunch of scripts in directory that exists on the path, so I can access each wherever I am. Sometime those are very simple util scripts that "vims" the file. From time to time I would like to quickly see the content of script file and see path to file the script opens (then make cat, grep ...).
I would like to make an alias which will "cat" given script wherever I am.
Given one is not working:
alias a="cat `which \$1`"
If I place script name instead of parameter number($1) it works fine. But
with parameter not.
The second question (I wish life be so so beautiful!) would be getting
auto-completion of script name for that alias.
Using a script that could exist in my "bin" directory would another approach which I can take.