summarylogtreecommitdiffstats
path: root/pay-respects.sh
blob: 083c93c39780ee097be1ea5a1f97c446af28d7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
if [ "$#" -ge 1 ] && [ -z "$_PR_LIB" ]; then
	SHELL=$(basename $SHELL)
	LIB="/usr/lib/pay-respects"
	PM="pacman"
	if [ "$SHELL" = "nu" ]; then
		echo "env:_PR_LIB=$LIB"
		echo "env:_PR_PACKAGE_MANAGER=$PM"
	elif [[ "$SHELL" = "pwsh" ]]; then
		echo "\$env:_PR_LIB=\"$LIB\""
		echo "\$env:_PR_PACKAGE_MANAGER=\"$PM\""
	else
		echo "export _PR_LIB=$LIB"
		echo "export _PR_PACKAGE_MANAGER=$PM"
	fi
fi
/opt/pay-respects/bin/pay-respects "$@"