Last active
June 16, 2018 09:27
-
-
Save ryenus/92ce33858c0ccf9ede7d2aab040998dc to your computer and use it in GitHub Desktop.
build htop with mouse support on macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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