Dotfiles setup made with:
-
direnv w/ global config in
~/.config/direnv/direnvrc -
Mac setup from mac.install.guide
-
Underlying ideals from 12 Factor App config
./setup-osx.sh tested with Bats
# insert 1password token into github action secrets
act -s GITHUB_TOKEN=$(op read $GITHUB_TOKEN)## When each is loaded:
.zshenv
→ .zprofile
→ .zshrc
→ .zloginmise activate zshcp <directory> <target>
mkdir -p <directory>
stow <directory>List all symlinks
ls -la ~ | grep "\->"Build plugins
nvim --headless -c "Lazy sync" -c "qa"Refresh and sync plugins
# Force clean and reinstall LazyVim plugins
nvim --headless -c "lua require('lazy').clean()" -c "lua require('lazy').sync()" -c "qa"Refresh and sync plugins
:Lazy clean
:Lazy syncop://<vault-name>/<item-name>/[section-name/]<field-name>Usage: op read <reference> [flags]
Examples:
Print the secret saved in the field 'password', on the item 'db', in the vault 'app-prod':
op read op://app-prod/db/password
Use a secret reference with a query parameter to retrieve a one-time
password:
op read "op://app-prod/db/one-time password?attribute=otp"
Use a secret reference with a query parameter to get an SSH key's private key in the OpenSSH format:
op read "op://app-prod/ssh key/private key?ssh-format=openssh"
Save the SSH key found on the item 'ssh' in the 'server' vault
as a new file 'key.pem' on your computer:
op read --out-file ./key.pem op://app-prod/server/ssh/key.pem
Use 'op read' in a command with secret references in place of plaintext secrets:
docker login -u $(op read op://prod/docker/username) -p $(op read op://prod/docker/password)
devbox add <package> # add a package to the devbox environment
devbox rm <package> # remove a package from the devbox environment
devbox info # show info about the devbox environment
devbox update # update packages in devbox
devbox version update # update devbox to the latest version
devbox shell # initialize the devbox shell
devbox generate direnv # generate a direnvrc fileClean up packages in nix store
devbox run -- nix store gc --extra-experimental-features nix-commandSet the default docker context to orbstack
docker context use orbstackpython package manager to replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, etc.
uv Keep submodules updated
git submodule update