= 2019-03-26 = * https://linoxide.com/linux-how-to/linux-terminal-recording-tools/ - 錄 command line == Brew == {{{ $ brew install htop Updating Homebrew... ==> Installing dependencies for htop: ncurses ==> Installing htop dependency: ncurses ==> Downloading https://homebrew.bintray.com/bottles/ncurses-6.1.mojave.bottle.tar.gz ######################################################################## 100.0% ==> Pouring ncurses-6.1.mojave.bottle.tar.gz ==> Caveats ncurses is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble. If you need to have ncurses first in your PATH run: echo 'export PATH="/usr/local/opt/ncurses/bin:$PATH"' >> ~/.bash_profile For compilers to find ncurses you may need to set: export LDFLAGS="-L/usr/local/opt/ncurses/lib" export CPPFLAGS="-I/usr/local/opt/ncurses/include" ==> Summary 🍺 /usr/local/Cellar/ncurses/6.1: 3,869 files, 8.3MB ==> Installing htop ==> Downloading https://homebrew.bintray.com/bottles/htop-2.2.0_1.mojave.bottle.tar.gz ######################################################################## 100.0% ==> Pouring htop-2.2.0_1.mojave.bottle.tar.gz ==> Caveats htop requires root privileges to correctly display all running processes, so you will need to run `sudo htop`. You should be certain that you trust any software you grant root privileges. ==> Summary 🍺 /usr/local/Cellar/htop/2.2.0_1: 11 files, 188KB ==> Caveats ==> ncurses ncurses is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble. If you need to have ncurses first in your PATH run: echo 'export PATH="/usr/local/opt/ncurses/bin:$PATH"' >> ~/.bash_profile For compilers to find ncurses you may need to set: export LDFLAGS="-L/usr/local/opt/ncurses/lib" export CPPFLAGS="-I/usr/local/opt/ncurses/include" ==> htop htop requires root privileges to correctly display all running processes, so you will need to run `sudo htop`. You should be certain that you trust any software you grant root privileges. }}}