This project uses devbox to manage its development environment.
Install devbox:
curl -fsSL https://get.jetpack.io/devbox | bash
Start the devbox shell:
devbox shell
Run a script in the devbox environment:
devbox run <script>
Scripts are custom commands that can be run using this project's environment. This project has the following scripts:
DEVBOX_GLOBAL_PREFIX="$HOME/.local/share/devbox/global/default/.devbox/nix/profile/default"
DEVBOX_GLOBAL_ROOT="$HOME/.local/share/devbox/global/current"
The Shell Init Hook is a script that runs whenever the devbox environment is instantiated. It runs
on devbox shell
and on devbox run
.
export PS1='📦 devbox> '
echo 'Welcome to DevBox !
- awscli@latest
- eksctl@latest
- kustomize@latest
- kind@latest
- vcluster@latest
- stern@latest
- argocd@latest
- aws-iam-authenticator@latest
- [email protected]
- kubernetes-helm-wrapped@latest
- diskonaut@latest
- bat@latest
- htop@latest
- zoxide@latest
- fzf@latest
- fzf-zsh@latest
- eza@latest
- starship@latest
- jq@latest
- yq-go@latest
- dive@latest
- dos2unix@latest
- k9s@latest
- ngrok@latest
- kubecolor@latest
echo adding 'devbox global shellenv' to ~/.bashrc
grep -qF 'devbox global shellenv' ~/.bashrc || echo 'eval "$(devbox global shellenv --init-hook)"' >> ~/.bashrc
tail -n 1 ~/.bashrc
echo adding 'devbox global shellenv' to ~/.zshrc
grep -qF 'devbox global shellenv' ~/.zshrc || echo 'eval "$(devbox global shellenv --init-hook)"' >> ~/.zshrc
tail -n 1 ~/.zshrc
if [ ! -f $HOME/.config/starship.toml ]
then
curl -fsSL https://raw.githubusercontent.com/yogeek/devbox-global/main/config/starship/starship.toml > $HOME/.config/starship.toml
fi