Skip to content

Instantly share code, notes, and snippets.

@wolfferine
wolfferine / gist:281fc2783b397ee7c10f9f5ce2fee4b6
Created August 24, 2026 07:58
GAIS - what's the macos terminal command equivalent of the powershell command: ls variable:*;
The closest macOS Terminal (zsh/bash) equivalent to list all defined variables is the set command.
## 💻 The Commands
* set: Displays all shell variables and local variables.
* env: Displays only exported environment variables.
## 🔍 Key Differences
* PowerShell's variable:* lists built-in, user, and global variables.
* macOS set outputs both variables and shell functions.