Skip to content

Instantly share code, notes, and snippets.

@organman91
organman91 / pass_easy_setup.sh
Last active September 24, 2020 09:06
pass easy setup
#Install pass and its dependencies: http://www.passwordstore.org/#download
#Generate a gpg key if you don't have one already.
gpg --gen-key
#Create a git (or mercurial) repository. Needless to say, you should NOT be checking this repo in to a system you don't control.
#Make two directories within it:
mkdir /path/to/repo/pubkeys /path/to/repo/store
#Set the PASSWORD_STORE_DIR environment variable to the store directory:
export PASSWORD_STORE_DIR="/path/to/repo/store"
@organman91
organman91 / zsh-bootstrap
Last active October 3, 2016 12:01
Boostrapping zsh from bash
If you're in an environment where your login shell isn't changeable (perhaps an educational institution)
but you still have the option to use zsh, you might want to have it log in to zsh automatically.
Some clever .bashrc will take care of that in a jiffy.
Put the following at the bottom of your .bashrc:
-----
# Start ssh-agent
# If (like me) you've got an NFS-mounted home directory,
# you might only want to start ssh-agent from the first machine you log in to.