14 lines
411 B
Bash
Executable file
14 lines
411 B
Bash
Executable file
#!/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"
|
|
export SOPS_AGE_KEY_FILE="$HOME/.config/sops/age/keys.txt"
|
|
|
|
if [[ $# -eq 1 ]]; then
|
|
# Single argument - run it through bash to handle complex commands
|
|
exec bash -c "$1"
|
|
else
|
|
exec "$@"
|
|
fi
|