Stephen_C Posted March 17, 2023 Share Posted March 17, 2023 Introduction Sometimes, for diagnostic purposes, you may be asked to provide a copy of your PATH environment variable. This little, dependency-free workflow simplifies that process by listing the relevant paths and (if you wish) copying them to the clipboard. Usage Simply type the keyword (the default is ckpth), review the result and choose to end the workflow (the default: just press ⏎) or copy the list to the clipboard. GitHub download link Stephen Link to comment
vitor Posted March 17, 2023 Share Posted March 17, 2023 Note this will always return the same PATH, specifically /opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin, because it’s the one Alfred sets for each workflow. They’re called Environment Variables because they’re scoped to a specific setting. See Understanding the Scripting Environment for an explanation, but feel free to ask for clarifications. Link to comment
Stephen_C Posted March 17, 2023 Author Share Posted March 17, 2023 Workflow withdrawn for further consideration. Stephen Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now