--- /dev/null
+#!/bin/sh
+set -e
+leaves=""
+while ! cd Build 2>/dev/null; do
+ cwd="$(pwd)"
+ leaf="${cwd##*/}"
+ if test -z "$leaf"; then echo >&2 'xr: no Build found'; break; fi
+ leaves="$leaf/$leaves"
+ cd ..
+done
+
+exec x -e \
+really -u rustcargo \
+env - PATH=/usr/local/bin:/usr/bin:/bin HOME=/home/rustcargo \
+ $(env | egrep '^LC_|^LANG=|^LANGUAGE=|^TERM=|^LESS=|^PAGER=') \
+bash --login -ec 'cd "$@"; exec bash' x "$(pwd)/$leaves"