3 ms·
Looking forward to trying it, though would be nice if credentials could be specified in a different way than on the command line (whereby they'll get saved into
by askvictor 2y ago
Looking forward to trying it, though would be nice if credentials could be specified in a different way than on the command line (whereby they'll get saved into your command line history).
- tbrb 2y agoAgree that it would be nice to specify credentials a different way - however as a workaround: some bash-based shells support prefixing the command with a space as a way of not saving that command into history. Ref: https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-HISTCONTROL https://www.gnu.org/software/bash/manual/html_node/Bash-Vari...
- maxbond 2y ago`psql` allows for putting your credentials in a dotfile with a very simple syntax. Should be quick to add support for, and would create a seamless onboarding experience for people who are already using `psql`.
- pcthrowaway 2y agoGenerally if you put a space before your command it'll bypass the history, though depending on your *nix you might need to set `HISTCONTROL=ignoreboth` in your bashrc or similar if it's not already.
- achristmascarl 2y agothat makes sense, thank you for opening an issue!