Skip to content

Instantly share code, notes, and snippets.

@ryenus
Last active June 16, 2018 09:27
Show Gist options
  • Save ryenus/92ce33858c0ccf9ede7d2aab040998dc to your computer and use it in GitHub Desktop.
Save ryenus/92ce33858c0ccf9ede7d2aab040998dc to your computer and use it in GitHub Desktop.
build htop with mouse support on macOS
#!/bin/bash
# install ncurses if not yet
# [ -z "$(brew info ncurses | grep 'Not installed')" ] || \
brew install ncurses
# setup $LDFLAGS and $CPPFLAGS
# source <(brew info ncurses | grep 'FLAGS' | sed -r -e 's/: +/=/' -e 's/^ +/export /')
export LDFLAGS=-L/usr/local/opt/ncurses/lib
export CPPFLAGS=-I/usr/local/opt/ncurses/include
# build and install to /usr/local/bin
./autogen.sh && ./configure && make & make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment