Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a helper script to ease path configuration #738

Open
tbussmann opened this issue Nov 29, 2023 · 0 comments
Open

Add a helper script to ease path configuration #738

tbussmann opened this issue Nov 29, 2023 · 0 comments

Comments

@tbussmann
Copy link
Member

Currently, we recommend to use a medium complex command1 to configure the path for CLI apps. This may scare users not used to the command line and doesn't give proper feedback it it was successful. Further, the Terminal window needs to be closed and reopened for the change to be effective. This instructions are given at docs/index.md, docs/documentation/install.md and docs/documentation/cli-tools.md but the restart is only mentioned at the last location.

In #735 (comment) the idea was expressed to include a shell script that takes care of setting the path which would be friendlier to call. This script could give a more verbose output, ask for password if ran w/o sudo and activate the new $PATH directly for the current session. Further, this script could take care of using the actual path in case Postgres.app is not in /Applications.

Maybe this script could even be called using a button in the preferences or from the menu, like tolls like BBEdit install their cmd-tooling.

Footnotes

  1. sudo mkdir -p /etc/paths.d &&
    echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant