Skip to content

yogeek/devbox-global

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Getting Started

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

Scripts are custom commands that can be run using this project's environment. This project has the following scripts:

Environment

DEVBOX_GLOBAL_PREFIX="$HOME/.local/share/devbox/global/default/.devbox/nix/profile/default"
DEVBOX_GLOBAL_ROOT="$HOME/.local/share/devbox/global/current"

Shell Init Hook

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 !

Packages

Script Details

devbox run install-hook-bash

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

devbox run install-hook-zsh

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

devbox run install-starship-prompt

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

About

DevBox global config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published