mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-25 20:59:21 +01:00
Compare commits
4 Commits
0837bd3a25
...
19c224b200
Author | SHA1 | Date | |
---|---|---|---|
19c224b200 | |||
f5f0ab22e3 | |||
7099439e0e | |||
54751b14f0 |
1
bash/usr-local-bin/.gitignore
vendored
1
bash/usr-local-bin/.gitignore
vendored
@ -9,3 +9,4 @@ ff
|
|||||||
chrome
|
chrome
|
||||||
iwd-wifi.bash
|
iwd-wifi.bash
|
||||||
vim
|
vim
|
||||||
|
yay
|
||||||
|
25
bash/usr-local-bin/pacman
Executable file
25
bash/usr-local-bin/pacman
Executable 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
1
bash/usr-local-bin/yay
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
pacman
|
@ -2,6 +2,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aminda/global-prettier-config": "2024.28.4"
|
"@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"
|
"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
|
Loading…
Reference in New Issue
Block a user