当我运行brew install
通过Homebrew安装软件包时,如果configure
脚本比我的终端宽,我无法读取整个内容。例如,这个命令是从我的终端逐字粘贴的,我无法阅读它的结尾。
==> Installing nginx-full from homebrew/nginx
==> Downloading https://nginx.org/download/nginx-1.10.1.tar.gz
Already downloaded: /Users/kevin/Library/Caches/Homebrew/nginx-full-1.10.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/nginx-full/1.10.1 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx-full/1.10.1/bin/nginx --with-cc-opt=-I/usr/local/include -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/openssl/1.0
==> make install
==> Caveats
有没有办法让Homebrew包装configure
命令,以便可以阅读整个内容?
据我所知,有些寻呼机可以让你横向翻页,但我宁愿不使用它们。
答案 0 :(得分:0)
尝试将宽度格式设置为72列:
brew install XYZ | fmt -w 72
示例输出
brew install imagemagick --without-threads --without-libtiff --without-modules | fmt -w 72
==> Using the sandbox ==> Downloading
https://dl.bintray.com/homebrew/mirror/imagemagick-6.9.6-2.tar.xz ==>
./configure --disable-osx-universal-binary
--prefix=/usr/local/Cellar/imagemagick/6.9.6-2 --disable-silent-rules
--enable-shared --enable-static --without-modules --disable-opencl
--disable-openmp --without-webp --without-openjp2 --without-gslib
--with-gs-font-dir=/usr/local/share/ghostscript/fonts --without-fftw
--without-pango --without-threads --without-x --with-freetype=yes ==>
make install /usr/local/Cellar/imagemagick/6.9.6-2: 1,235 files,
22.7M, built in 1 minute 22 seconds