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" }