cd ~
git init
git remote add origin https://github.com/skleinjung/dotfiles.git
git fetch
git checkout -f master
ssh-register
NOTE: the initial "." character!
. set-env-secrets
Bash Profile:
- Load environment variables from this repo
- Setup nvm, if installed
- Start one SSH agent per login (not terminal session)
- Register executable shadow path, ~/bin
Bash Aliases:
famend
fpush
Scripts:
- bin/fetch-secret: Fetches a single secret from LastPass and prints its value to stdout. Requires
lpass
. - bin/set-env-secrets: Reads all secrets from a host's ".env" folder and exports them as environment variables. Requires
lpass
. - bin/ssh-register: Adds SSH key direct from LastPass into current
ssh-agent
. Requiresjq
andlpass
.
git add -f <FILE>