#!/bin/bash # Shim to run commands with nix paths available # Usage: path-shim command args... # Or: path-shim "command with args" export PATH="/etc/profiles/per-user/$USER/bin:/run/current-system/sw/bin:$PATH" if [[ $# -eq 1 ]]; then # Single argument - run it through bash to handle complex commands exec bash -c "$1" else exec "$@" fi