pass¶
Installation¶
Remove gpg-agent error
Usage¶
Import File¶
Git¶
Reconnecting Existing Repo¶
git clone [email protected]:nicholaswilde/pass.git ~/.password-store
pass-import¶
Encrypt Files¶
pass insert -m sensitive/secret_answers < secret_answers.txt
# Or
cat secret_answers.txt | pass insert -m sensitive/secret_answers
Update encryption key¶
Check Git Origin¶
Copy password using osc52.sh¶
Ensure that xclip is uninstalled
Step 1: Create the xclip Wrapper¶
pass tries to run xclip with specific flags. We need a dummy xclip that ignores those flags and pipes the password to your copy command.
Create the file:
Note
Ensure ~/.local/bin is in your $PATH. If you use a different bin folder, put it there
Paste the following content:
#!/bin/bash
# 1. 'pass' attempts to restore the clipboard using 'xclip -o'.
# We cannot read the client clipboard via OSC52, so we ignore this or exit.
if [[ "$*" == *"-o"* ]]; then
exit 0
fi
# 2. 'pass' sends the password via Stdin.
# We pipe that Stdin directly to your 'copy' script.
# Your 'copy' script (osc52.sh) handles the base64 encoding and escape codes.
cat | copy
Make it executable:
Check that it exists in $PATH
Step 2: Bypass the Display Check (Crucial for SSH)¶
If you are running this over SSH (which is likely, given you are using hterm), pass will abort saying "Error: No X11 window system found" because the $DISPLAY variable is empty.
You must set a fake display variable to trick pass into running our wrapper.
Run this in your terminal (or add it to your ~/.bashrc):
Step 3: Test It
Run the standard copy command: