https://github.com/usrrname/dotfiles
There was an attempt to store my configs
https://github.com/usrrname/dotfiles
Last synced: 10 months ago
JSON representation
There was an attempt to store my configs
- Host: GitHub
- URL: https://github.com/usrrname/dotfiles
- Owner: usrrname
- Created: 2025-07-11T22:56:41.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-02T18:33:40.000Z (10 months ago)
- Last Synced: 2025-08-02T18:43:49.567Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 119 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
[](https://www.jetify.com/devbox/docs/contributor-quickstart/)
Dotfiles setup made with:
- [stow](https://www.gnu.org/software/stow/)
- [direnv](https://direnv.net) w/ global config in `~/.config/direnv/direnvrc`
- Mac setup from [mac.install.guide](https://mac.install.guide/)
- Underlying ideals from [12 Factor App config](https://12factor.net/config)
`./setup.sh` tested with [Bats](https://github.com/bats-core/bats-core)
### Contents
- [zsh](#zsh)
- [Symlinking](#symlinking)
- [Nvim/LazyVim](#nvimlazyvim)
- [1Password](#1password)
- [Devbox](#devbox)
- [OrbStack](#orbstack)
- [Maintenance](#maintenance)
## zsh
```bash
## When each is loaded:
.zshenv
→ .zprofile
→ .zshrc
→ .zlogin
```
## Symlinking
```bash
cp
mkdir -p
stow
```
List all symlinks
```bash
ls -la ~ | grep "\->"
```
## Nvim/LazyVim
Build plugins
```bash
nvim --headless -c "Lazy sync" -c "qa"
```
Refresh and sync plugins
```bash
# Force clean and reinstall LazyVim plugins
nvim --headless -c "lua require('lazy').clean()" -c "lua require('lazy').sync()" -c "qa"
```
Refresh and sync plugins
```bash
:Lazy clean
:Lazy sync
```
## 1Password
```bash
op:////[section-name/]
```
```bash
Usage: op read [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
[FAQ](https://www.jetify.com/docs/devbox/faq/)
```bash
devbox add # add a package to the devbox environment
devbox rm # 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 file
```
Clean up packages in nix store
```bash
devbox run -- nix store gc --extra-experimental-features nix-command
```
## OrbStack
Set the default docker context to orbstack
```bash
docker context use orbstack
```
## Maintenance
Keep submodules updated
```bash
git submodule update
```