2024-07-13 16:36:24 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
2024-11-01 12:12:16 +00:00
|
|
|
source "$dir/../../lib/software.fish"
|
2024-07-13 16:36:24 +00:00
|
|
|
|
2024-07-28 21:45:30 +00:00
|
|
|
function runYay -d "Run yay with pre-configured defaults"
|
2024-09-13 14:32:26 +00:00
|
|
|
if not isatty 0
|
|
|
|
echo "stdin detected" 1>&2
|
|
|
|
cat
|
|
|
|
end | yay --needed --answerclean=None --answerdiff=None -Syu $argv
|
2024-07-28 21:45:30 +00:00
|
|
|
end
|
|
|
|
|
2024-07-14 07:48:23 +00:00
|
|
|
function yayinst -d "Install yay-package non-interactively"
|
2024-07-28 21:45:30 +00:00
|
|
|
runYay --noconfirm $argv
|
|
|
|
end
|
|
|
|
|
|
|
|
function runPacman -d "Run pacman with pre-configured defaults"
|
2024-09-13 14:32:26 +00:00
|
|
|
if not isatty 0
|
|
|
|
echo "stdin detected" 1>&2
|
|
|
|
cat
|
|
|
|
end | sudo pacman --needed -Syu $argv
|
2024-07-13 16:36:24 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function pacinst -d "Install pacman-package non-interactively"
|
2024-07-29 21:46:14 +00:00
|
|
|
runPacman --noconfirm $argv
|
2024-07-13 16:36:24 +00:00
|
|
|
end
|
|
|
|
end
|