News for hackers. Stuff that matters.
Re:Best of .bashrc by eloeffler on Monday August 02, 2021 @05:14AM (#28034501)
Sometimes my aliases get in the way of binaries in $PATH. The aliases here seem to me to run the same danger.

There was a post about prefixing aliases with a comma some time ago. I thought that might be of relevance here (can't find the post anymore...). The idea being that you use aliases like this: alias ,somecommand="echo foo"

This avoids collisions and also allows you to iterate your aliases with autocomplete by typing , and then tab. Very handy :)

Re:Best of .bashrc by mtbkvc on Monday August 02, 2021 @09:46AM (#28036421)
nice idea. thanks
Re:Best of .bashrc by ttyprintk on Monday August 02, 2021 @02:27AM (#28033480)
GNU tar can automatically decompress with -a, which might save some typing with these. Relatedly, you cannot append to a compressed tarball, which means those aliases will are improper if you try to append. Replace z with a for aliases that can append with GNU tar.