From e97a38829677b06cd8675e8a35d0fd3dda7a34b9 Mon Sep 17 00:00:00 2001 From: Spencer Gilbert Date: Fri, 25 Sep 2026 08:21:25 -0400 Subject: [PATCH] [mise] Provide rocm and mise tools to non-interactive bash --- bashrc.d/10-mise.sh | 6 ++++++ bashrc.d/20-rocm.sh | 7 +++++++ mise.toml | 1 + 3 files changed, 14 insertions(+) create mode 100644 bashrc.d/10-mise.sh create mode 100644 bashrc.d/20-rocm.sh diff --git a/bashrc.d/10-mise.sh b/bashrc.d/10-mise.sh new file mode 100644 index 0000000..a82fbd3 --- /dev/null +++ b/bashrc.d/10-mise.sh @@ -0,0 +1,6 @@ +# Provide mise-managed tools (rg, zig, …) to non-interactive shells, including +# `ssh cmd` and the pi ssh extension. --shims is mise's documented form +# for non-interactive shells; it just prepends the shims dir to PATH. +if command -v mise >/dev/null 2>&1; then + eval "$(mise activate bash --shims)" +fi diff --git a/bashrc.d/20-rocm.sh b/bashrc.d/20-rocm.sh new file mode 100644 index 0000000..1a0c4cd --- /dev/null +++ b/bashrc.d/20-rocm.sh @@ -0,0 +1,7 @@ +# ROCm 10 (amdrocm-* RPMs) ships no profile script and does not put +# /opt/rocm/bin on PATH, so add it here. Guarded for non-ROCm hosts. +if [ -d /opt/rocm/bin ]; then + export ROCM_PATH=/opt/rocm + export HIP_PATH="$ROCM_PATH" + export PATH="$ROCM_PATH/bin:$PATH" +fi diff --git a/mise.toml b/mise.toml index df1da8a..0432752 100644 --- a/mise.toml +++ b/mise.toml @@ -15,6 +15,7 @@ run = "mkdir -p -m 700 $HOME/.ssh/sockets" run = "mise run configure-forge-remotes" [dotfiles] +"~/.bashrc.d/" = { source = "bashrc.d/", mode = "symlink-each" } "~/.config/bat/" = "bat/" "~/.config/fish/" = { source = "fish/", mode = "symlink-each" } "~/.config/ghostty/config.ghostty" = { source = "ghostty/config.ghostty", mode = "template" } -- 2.51.2