Skip to content

Don't edit my .bashrc #76

@CallieNCI

Description

@CallieNCI

Describe the bug
The module silently adds ...

export OP_ACCOUNT="<ACCOUNT>.1password.com"

to my .bashrc.

To Reproduce
Steps to reproduce the behavior:

The-Matrix$ tail -2 ~/.bashrc
. "$HOME/.local/bin/env"
export alpha=beta

The-Matrix$ cat r.py
#!/usr/bin/env python3

from onepassword import OnePassword

op = OnePassword()

The-Matrix$ ./r.py
Please input your 1Password personal or business acount name e.g. company from company.1password.com: my.1password.com

The-Matrix$ tail -2 ~/.bashrc
export alpha=beta
export OP_ACCOUNT="my.1password.com"

Expected behavior
It should not do that!

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Version 15.3.1

Additional context
For someone who is working with multiple 1Password accounts, this causes unexpected bevhaviours, but you should not touch my .bashrc, and never do something like that silently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions