TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Best of .bashrc

34 pointsby hidden-spyderalmost 4 years ago

2 comments

eloeffleralmost 4 years ago
Sometimes my aliases get in the way of binaries in $PATH. The aliases here seem to me to run the same danger.<p>There was a post about prefixing aliases with a comma some time ago. I thought that might be of relevance here (can&#x27;t find the post anymore...). The idea being that you use aliases like this: alias ,somecommand=&quot;echo foo&quot;<p>This avoids collisions and also allows you to iterate your aliases with autocomplete by typing , and then tab. Very handy :)
评论 #28036421 未加载
ttyprintkalmost 4 years ago
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.