upload file(s) to [S3][aws-s3]
tmp=$(mktemp /tmp/s3-install.XXXXXX) &&
curl -fsSL -m 30 -o "$tmp" \
https://gist.githubusercontent.com/nicholaswmin/ddbf7d5da7e3dab95c38f704b6d98631/raw/install.zsh &&| D=$(mktemp -d) | |
| A=$([[ $(uname -m) == arm64 ]] && echo arm64 || echo x64) | |
| T=$(curl -fsSL https://nodejs.org/dist/latest/SHASUMS256.txt | grep "darwin-$A.tar.gz$" | awk '{print $2}') | |
| curl -fsSL "https://nodejs.org/dist/latest/$T" | tar -xz -C $D --strip-components=1 | |
| export PATH=$D/bin:$PATH NPM_CONFIG_CACHE=$D/cache NPM_CONFIG_PREFIX=$D/prefix | |
| npx -y @wonderwhy-er/desktop-commander@latest remote |
| #!/usr/bin/env zsh | |
| # | |
| # ok.zsh -- tiny TAP 14 test runner for zsh | |
| # | |
| # Author: https://github.com/nicholaswmin | |
| # License: MIT | |
| # | |
| # Discover and run *.test.zsh files. Each file runs in its own subshell | |
| # with the assertion API preloaded, so test files call the assertors | |
| # directly -- no `source` line. |
| /** | |
| * Free-up a TCP port by killing all processes listening on it. | |
| * License: The MIT-0 License; no attribution required | |
| * | |
| * - Finds all processes listening on specified port, | |
| * sends a SIGTERM signal to each, then polls until all die, | |
| *. or the grace period expires, SIGKILL-ing all survivors. | |
| * - Returns: array of killed PIDs, empty if none | |
| * | |
| * await unbind(3000) // => [] or [pid, ...] |
[Human Interface Guidelines: Color][hig-color]
separator is not a label.Light/Dark map to Light|Dark mode while HiCon map to High Contrast + mode| Name | Light | Dark | HiCon Light | HiCon Dark |
|---|---|---|---|---|
systemBlue |
![][sw-007AFF] #007AFF |
![][sw-0A84FF] #0A84FF |
![][sw-0796E0] #0796E0 |
![][sw-409CFF] #409CFF |
systemGreen |
![][sw-28CD41] #28CD41 |
![][sw-32D74B] #32D74B |
![][sw-05AB1E] #05AB1E |
![][sw-31DE4B] #31DE4B |
systemIndigo |
![][sw-5856D6] #5856D6 |
![][sw-5E5CE6] #5E5CE6 |
![][sw-3634A3] #3634A3 |
![][sw-7D7AFF] #7D7AFF |
guidelines for concise [zsh][zsh-wiki] scripts
authors: [nicholaswmin][authorgh] - The [MIT][mit-lcns] License.
The keywords must/must not are to be interpreted as described in [RFC-2119][rfc-2119].
This formality is kept to a minimum because this document is meant to be LLM-parseable;
in other cases, your own unique context dictates their applicability.
| #!/usr/bin/env zsh | |
| autoload -U colors && colors | |
| # Check for correct shell | |
| if [ -z "$ZSH_VERSION" ]; then | |
| echo "Error: This script must be run with zsh, not sh or bash" | |
| echo "Please run with: zsh ./vouch.zsh install" | |
| exit 1 | |
| fi |