Compare commits

...

4 Commits

Author SHA1 Message Date
19c224b200
update submodules 2024-08-15 12:22:52 +03:00
f5f0ab22e3
pacman: remove excess quoting 2024-08-15 12:22:35 +03:00
7099439e0e
usr-local-bin/pacman: initial commit
made on Fedora instead of actual Arch, so let's see if this will work
2024-08-15 12:17:42 +03:00
54751b14f0
corepack up 2024-08-15 12:06:52 +03:00
7 changed files with 31 additions and 4 deletions

View File

@ -9,3 +9,4 @@ ff
chrome
iwd-wifi.bash
vim
yay

25
bash/usr-local-bin/pacman Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -x
export LC_ALL=en_DK.UTF-8
# if yay is installed and we aren't root, run it instead
if [[ -f /usr/bin/yay && $(id -u) != 0 ]]; then
if [[ "$1" == "-S" ]]; then
/usr/bin/yay --needed $*
else
/usr/bin/yay $*
fi
# otherwise attempt to run pacman, but keep the --needed for installs
elif [[ -f /usr/bin/pacman ]]; then
if [[ "$1" == "-S" ]]; then
/usr/bin/pacman --needed $*
else
/usr/bin/pacman $*
fi
# otherwise fail gracefully
else
printf "Neither yay or pacman was found.\n"
exit 1
fi
set +x

1
bash/usr-local-bin/yay Symbolic link
View File

@ -0,0 +1 @@
pacman

View File

@ -2,6 +2,6 @@
"devDependencies": {
"@aminda/global-prettier-config": "2024.28.4"
},
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf",
"packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247",
"prettier": "@aminda/global-prettier-config"
}

@ -1 +1 @@
Subproject commit 9ebd34eb6176b1c19f8c1b3cc048c75179bc9f28
Subproject commit f72c3af951ad04da5f0874f668bb3ebea6518adf

@ -1 +1 @@
Subproject commit d37001f4c466659db5af85a0c825bbfa202d1e9a
Subproject commit c1a34299f684beb940cb622ca4658d250774c782

@ -1 +1 @@
Subproject commit c82943b61b98a2596795e087f947470684aff4a7
Subproject commit 9cdd99fdb18bd01dd4fc1a5d5320a981bb207698