Last active
December 29, 2022 18:49
-
-
Save kergoth/d40bc5581bb6f5a108909e7b735e9066 to your computer and use it in GitHub Desktop.
devbox test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -x ./devbox ]; then | |
devbox () { | |
./devbox "$@" | |
} | |
fi | |
use_devbox() { | |
watch_file devbox.json | |
eval $(devbox shell --print-env) | |
} | |
use devbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"packages": [ | |
"python310", | |
"fd", | |
"ripgrep", | |
"fzf", | |
"exa", | |
"git-absorb", | |
"gh", | |
"shfmt", | |
"jq", | |
"choose", | |
"neovim", | |
"tmux", | |
"shellcheck" | |
], | |
"shell": { | |
"init_hook": null | |
}, | |
"nixpkgs": { | |
"commit": "52e3e80afff4b16ccb7c52e9f0f5220552f03d04" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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