Skip to content

Instantly share code, notes, and snippets.

@kergoth
Last active December 29, 2022 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kergoth/d40bc5581bb6f5a108909e7b735e9066 to your computer and use it in GitHub Desktop.
Save kergoth/d40bc5581bb6f5a108909e7b735e9066 to your computer and use it in GitHub Desktop.
devbox test
if [ -x ./devbox ]; then
devbox () {
./devbox "$@"
}
fi
use_devbox() {
watch_file devbox.json
eval $(devbox shell --print-env)
}
use devbox
{
"packages": [
"python310",
"fd",
"ripgrep",
"fzf",
"exa",
"git-absorb",
"gh",
"shfmt",
"jq",
"choose",
"neovim",
"tmux",
"shellcheck"
],
"shell": {
"init_hook": null
},
"nixpkgs": {
"commit": "52e3e80afff4b16ccb7c52e9f0f5220552f03d04"
}
}
#!/bin/sh
if [ -x ./devbox ]; then
devbox () {
./devbox "$@"
}
fi
eval $(devbox shell --print-env)
devbox shell -- true
if command -v nixwrap >/dev/null 2>&1; then
nixwrap "$PWD/.devbox/nix/profile/default" .devbox/shims
PATH_add .devbox/shims
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment