Skip to main content

macOS Terminal.app interpreter

Project description

Installation

$ [sudo] pip install mac-terminal-interpreter
$ [sudo] npm i -g mac-terminal-interpreter

How it works

script.ext

#!/usr/bin/env terminal
...

stdout, stderr logs:

~/Library/Logs/<slug>/<date>/out.log
~/Library/Logs/<slug>/<date>/err.log

Config

~/.bashrc:

export MAC_TERMINAL_CLOSE=0 # doesn't close (default)
export MAC_TERMINAL_CLOSE=1 # close if the shell exited cleanly
export MAC_TERMINAL_CLOSE=2 # close always

Terminal error sound:

$ defaults write .GlobalPreferences com.apple.sound.beep.sound /System/Library/Sounds/Basso.aiff

readme42.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mac-terminal-interpreter-2020.12.3.tar.gz (2.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page