Linux | Mac |
---|---|
Hush suppresses stdout for commands executed successfully. It executes specified program and shows its output only after the program has exited. If the exit status is zero, only stderr from the program is outputted. If the exit status is non-zero both stderr and stdout are outputted.
$ hush make
Hush should work on Linux and macOS.
Pre-requisites (Ubuntu):
sudo apt install git cmake build-essential
Download the source code:
git clone https://github.com/d99kris/hush && cd hush
Generate Makefile and build:
mkdir -p build && cd build && cmake .. && make -s
Optionally run tests:
ctest --output-on-failure
Optionally install in system:
sudo make install
General usage syntax:
hush PROG [ARGS..]
Hush executes specified program using faketty (preserving color output) and captures stdout, stderr and a combination of them both. Depending on process exit status, the appropriate output is propagated to the user / shell.
Hush is distributed under the BSD 3-Clause license. See LICENSE file.
hush, linux, macos, os x, silenced execution, suppressing stdout upon successful exit status.