Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
shoeffner
· 1y ago · 0 comments
I use pass to manage such things separately. This allows to script around hard-coded secrets:
export MY_TOKEN="$(pass token | head -n 1)"
Comments
[–]
lillecarl
1y ago
I take care to wrap my commands in functions that export only for that scope. If you have exported variables in your bashrc it'll be shared with everything you spawn through your shell, including evil NPM packages.