Lurker News

Comments (62) 14 threads

Earlier comments
javajosh#
I like it! I wish it had some features for making a screenshot, taking a photo, and recording video or sound for n seconds. A packet capture for n seconds might be nice, too (although that would certainly be more involved). Might as well add keyboard/mouse logging for n seconds. :)
stereo1 reply#
It’s not really clean, how it asks for /usr/local/m-cli to be added to $PATH but then litters that directory with other scripts.
JadeNB#
It does mention that you can put it elsewhere:

    INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)
64bitbrain2 replies#
Does it need to be ran as root?

Downloading m-cli from git to /usr/local fatal: could not create work tree dir '/usr/local/m-cli': Permission denied Failed to clone => https://github.com/rgcr/m-cli.git
Off course it won't be able to access the /usr/local/

planb#
Most people using this probably have homebrew installed, which makes /usr/local writable for the main user.
JadeNB#
The README addresses this (with the somewhat elliptical "You need privileges"), and points out a work-around:

> You can also install it in a different path

    INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)
> Note: You need privileges
JustSomeNobody#
As opposed to alias in bashrc for the commands you use most often?

This and the other one that was on HN a short while back, I just don't get the point. Learn the command line, already. Yes, some are hard to remember, but that's why history exists. And if you rarely use one, keep it in a simple, greppable text file.

Load more comments