PortValhalla/scripts/Arch/lib/software.fish

28 lines
745 B
Fish
Raw Normal View History

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