Closed willeccles closed 2 years ago
maybe something along the lines of
"cpm is a simple shell script. Typical use case would be to sudo install -m755 /path/to/cpm /bin/cpm
"
sudo curl https://raw.githubusercontent.com/willeccles/cpm/master/cpm -o /usr/local/bin/cpm
ez
oh wait that's not executable nvm
@gk one could tack a && sudo chmod 755 /usr/local/bin/cpm
and call it done, technically
@foxsouns True, but at that point it's not really much shorter than it currently is.
Slight improvement over gk's solution:
alias cpm='curl -SsL https://raw.githubusercontent.com/willeccles/cpm/master/cpm -o - | /bin/sh'
@willeccles i don't think that would work lol
-o -
is redundant, outputting to stdout is the default behavior.alias 'cpm=curl -LSs https://github.com/willeccles/cpm/raw/master/cpm | sh -s --'
should work
this is the best example of jumping through hoops i have ever seen only problem this presents is that you need internet for every use but most people using a package manager would have internet, anyways and this does give the benefit of always being up to date hmmm
Who cares about system ultra-responsiveness when you can just always be uptodate?! i certainly do, but i'm the minority
also cronjobs to update are for cringes. just use the aforementioned simple solution
that command was 1ms too slow time to reinstall [insert distro of choice]
I mean, on my system a help
command is 0.002
s (local) vs 0.857
s (curled) (subsequent ones are about 155ms)
little bit more than 1ms
At the very least they ought to be simplified/generalized. At worst, just remove them.