macOS Terminal.app interpreter
Project description
Installation
$ [sudo] pip install mac-terminal-interpreter
Benefits
- opens in the
Terminal.app
even without.command
extension - stdout, stderr logs
- makes
.command
file executable - window closure options (doesn't close, close if the shell exited cleanly, close always,)
- displayed non-zero exit status
- bell notification on error
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
Scripts usage
command | usage |
---|---|
terminal |
usage: terminal path |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for mac-terminal-interpreter-2019.5.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29ddc8de7dcb8c807ab9a4fe77b4138f39dc44fc3fab8b4a71411cb0c0e2416a |
|
MD5 | a6590635ee687e3811f565618148e362 |
|
BLAKE2b-256 | 30472916d73f99e44a1f71b865eccc44002ecc09cbd9a057a3c6f83e5010a932 |