Skip to content

usrrname/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Built with Devbox

Dotfiles setup made with:

./setup-osx.sh tested with Bats

Contents

act

# insert 1password token into github action secrets
act -s GITHUB_TOKEN=$(op read $GITHUB_TOKEN)

zsh

## When each is loaded:
.zshenv
        → .zprofile
                → .zshrc 
                        → .zlogin

Mise

mise activate zsh

Symlinking

cp <directory> <target>
mkdir -p <directory>
stow <directory>

List all symlinks

ls -la ~ | grep "\->"

Nvim/LazyVim

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 sync

1Password

op://<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

FAQ

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 file

Clean up packages in nix store

devbox run -- nix store gc --extra-experimental-features nix-command

OrbStack

Set the default docker context to orbstack

docker context use orbstack

uv

python package manager to replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, etc.

uv 

Maintenance

Keep submodules updated

git submodule update

About

There was an attempt to store my configs

Resources

Stars

Watchers

Forks