h-m-m
h-m-m copied to clipboard
Install script for Mac
Can someone check whether or not the install script works on Mac, and if not, come with adjustments to it to work on both platforms, or prepare a separate install script for Mac?
Although I ran the install script on M1 Mac, I was able to install this tool if I had already installed PHP and xclip.
There are additional dependencies that need installing, at least on Intel macs. I'm gonna write some OS detect into the install script and do a pull request.
brew install php
brew install xclip
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/nadrad/h-m-m/main/install.sh)"
brew install xclip
It uses pbcopy
and pbpaste
in Mac; xclip
is not needed.
it works after I commented this part
#Test if xclip, xsel or wl-clipboard are on PATH #if ! command -v xclip > /dev/null 2>&1 && ! command -v xsel > /dev/null 2>&1 && ! command -v wl-clipboard > /dev/null 2>&1 ;then #printf "ERROR: xclip, xsel or wl-clipboard must exist on PATH. Installation cancelled.\n"; #printf "%s\n" "$MINIMUM_REQUIREMENTS" #exit 1 #fi
then, the pre-reqs "brew install xclip" and it worked like a charm
I just downloaded the zip and tossed it in a folder and opened it up. Beautiful program. Nice work!
I think 35a6bae is enough for now.