Skip to content

Commit

Permalink
fix: use devenv shell install mdbook-cmdrun
Browse files Browse the repository at this point in the history
Co-authored-by: ZHANG Yuntian <[email protected]>
  • Loading branch information
CodeChenL and RadxaYuntian authored Apr 18, 2024
1 parent 75f149a commit 0a8db77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libexec/rsdk/rsdk-setup
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ nix registry add devenv github:cachix/devenv
(yes || true) | nix profile install --accept-flake-config devenv#default

devenv shell npm install @devcontainers/cli
devenv shell cargo install mdbook-cmdrun
trap - EXIT

cargo install mdbook-cmdrun

RSDK_COMPLETION_DIR="${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions"
mkdir -p "$RSDK_COMPLETION_DIR"
rm -f "$RSDK_COMPLETION_DIR/rsdk"
Expand Down

0 comments on commit 0a8db77

Please sign in to comment.