Using environment variables is def a solid move for securing your curl username password. Just set it up like `export USERNAME="your_username"` and `export PASSWORD="your_password"` in your terminal or script. Then you can call it in your curl command with `-u $USERNAME:$PASSWORD`.
This way, it’s not sitting in plain text, and you can even add these vars to your `.bashrc` or `.zshrc` if you want them to persist. Just make sure to keep your shell history clean if you’re paranoid about leaks.
This way, it’s not sitting in plain text, and you can even add these vars to your `.bashrc` or `.zshrc` if you want them to persist. Just make sure to keep your shell history clean if you’re paranoid about leaks.
