5

Acme in Plan9. There's a macOS version available. If you want this video Ori actually talks through and explains how to change and edit how the editor behaves: Plan 9: Not dead, Just Resting, by Ori Bernstein


4

If you do this: screencapture -R0,0,34,20 test1.png you will get test1.png which has 34 pixels width and 20 pixels height.


4

The problem is occurring because of an improper account name beginning with the dash ("-") character. So the solution is changing the name of the account via the steps given in this link: https://support.apple.com/en-us/HT201548 When you open the terminal an automatic login command like login -pf [account-name] is executed. Let's say the account name is "-...


4

Yes, security updates show up as recommended updates but softwareupdate -r at least on Mojave is invalid. Note softwareupdate will not install updates for things from the App Store. If you run softwareupdate -l on a system that is due security updates you can see them prefixed with a * character in the --list output which means they are recommended and ...


3

The open command will open it no matter where the person has it installed (you don’t have to put an app in /Applications on macOS). open -a iTerm.app You could search using spotlight as well mdfind "kMDItemCFBundleIdentifier == com.googlecode.iterm2"


3

Like mentioned in my comment (now deleted) this is plan9 running acme: The implementation of plan9 actually used in the video is: Plan 9 from User Space It has to be installed/compiled with Xcode: Installation To install, run ./INSTALL. It builds mk and then uses mk to run the rest of the installation. For more details, see install(1), at ...


2

pmset -g batt | head -n 1 | cut -d \' -f2 You can just use the delimiter to and escape the single quote to get the extracted text.


2

There isn't a general way to do this. Most of the things you do in the GUI don't run command-line tools, they use thing like system calls to do things directly. For example, when you run mkdir from the command line, it uses the mkdir() function to actually create the directory. Finder doesn't bother using the mkdir command, it simply calls mkdir() (or ...


2

You don’t need it so remove all things there you don’t positively trust and know you need. Then, wait for a dialog to pop up asking again for permissions so you can scrutinize what and why you’re giving up control of your Mac. In this case, the sh process can run all sorts of scripts so it’s like putting a wedge in the door, anyone that uses the wedge can ...


1

engauge Digitizer indeed provides a CLI at least using the pkg installer available at github to install the app. In theory you can simply enter a command in Terminal to either open a *.dig file (the native engauge Digitizer file format) or import one of the supported image formats (jpg/bmp/png etc.): /Applications/Engauge\ Digitizer.app/Contents/MacOS/...


1

I don't like that brew uses my GitHub credentials. Brew is not using your GitHub credentials, you are. Brew is just an exceptionally advanced scripting engine that allows you to download and build from source software that’s found on GitHub, Sourceforge, et al. It’s important to note that you’re not downloading from Brew, but a Brew is automating your ...


1

You get the FileVault status with: fdesetup status You get the Application Firewall status with: /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate You get a verbose pf status with: sudo pfctl -sa Further readings: man fdesetup|pfctl and /usr/libexec/ApplicationFirewall/socketfilterfw -h.


1

Especially since you're already using zsh, I would recommend using the existing highlighter framework (and builtin highlighters) of zsh-syntax-highlighting or fast-syntax-highlighting Based on a preliminary review, both should have sufficient documentation to hopefully allow you to set up your preferred environment. Here's a screenshot of zsh-syntax-...


1

networksetup -listallnetworkservices is the macOS command that I believe you are looking for. Quoting from man networksetup: -listallnetworkservices Displays a list of all the network services on the server's hardware ports. An asterisk (*) denotes that a network service is disabled. On my MacBook Air: An asterisk (*) denotes that a network ...


1

There are at least two places where iTerm.app might be found, either in the /Applications/ folder (99% of the time) or the user’s own $HOME/Applications/ folder (very rare, but possible). You can check to see if it is in either of those places like so: if [ ! -d '/Applications/iTerm.app' -a ! -d "$HOME/Applications/iTerm.app" ] then echo 'iTerm is not ...


1

Xcode.app provides a set of command line tools. Standalone 'Xcode Command Line Tools' provides another set. You can switch between them (see xcode-select --help). git, gcc and many commands in /usr/bin/ is actually a jumper to the real executable of selected CLT. Standalone CLT is almost unnecessary if you have Xcode.app installed. You can simply trash /...


1

The tool chown isn’t good for this. Instead use sudo -s to be root. Now you’re the owner of the root directory. If you want to ask a follow on question showing a specific path and specific command you get a specific error, there might be a better way to set things up - root won’t help with system read only files and the restricted flag in System Integrity ...


1

To capture a window using screencapture in Terminal, you have two options: Interactively -i capture screen interactively, by selection or window control key - causes screen shot to go to clipboard space key - toggle between mouse selection and window selection modes escape ...


1

Solution: Copy the zsh setup files (/etc/zshrc and /etc/zshrc_Apple_Terminal) from a Catalina system to the older system (preferably after backing up the original equivalent(s)). I haven't tested this in Mojave, but I did in High Sierra, and it works fine there. Explanation of the problem: Setting the Terminal window/tab title requires running some code (e....


1

Coming from the docker world, on your Mac/Windows/Linux box (with docker installed): docker run -it --rm alpine mkpasswd -m des helloworld Replace your mkpasswd arguments as needed.


Only top voted, non community-wiki answers of a minimum length are eligible