Updated Fish

Signed-off-by: The-Repo-Club <wayne6324@gmail.com>
This commit is contained in:
The-Repo-Club 2022-09-30 07:17:06 +01:00
parent 0bfc0b623a
commit cfb13fac9f
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
4 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,5 @@
export MICRO_TRUECOLOR=1
for plugins in "$HOME/.config/fish/plugins/"* for plugins in "$HOME/.config/fish/plugins/"*
source $plugins source $plugins
end end

View File

@ -20,8 +20,10 @@ function pacman
else if [ "$argv" = --upall ] else if [ "$argv" = --upall ]
command sudo pacman -Fy command sudo pacman -Fy
command sudo pacman -Sy command sudo pacman -Sy
command sudo pacman -Su --noconfirm command paru -Su
command auracle update -C ~/.cache/pkgs/ command auracle update -C ~/.cache/pkgs/
else if [ "$argv" = --upkernel ]
command sudo pacman -S linux linux-lts linux-zen linux-headers linux-lts-headers linux-zen-headers --needed --noconfirm
else if [ "$argv" = --pacsync ] else if [ "$argv" = --pacsync ]
command pacsync command pacsync
else else
@ -29,11 +31,15 @@ function pacman
end end
end end
# Update all repos # Update all packages
function upall function upall
pacman --upall pacman --upall
end end
function upkernel
pacman --upkernel
end
#check aur and arch packages #check aur and arch packages
function checkarch function checkarch
command sudo pacman -Qqen >~/package_list.txt command sudo pacman -Qqen >~/package_list.txt

View File

@ -6,6 +6,8 @@ function updaterepo
switch $confirm switch $confirm
case Y y case Y y
cd /mnt/500GB/.gitlabs/Arch.TheRepo.Club/scripts/
python mkindex.py --header "arch.linuxrepos.org" ../x86_64 >../x86_64/index.html
cd /mnt/500GB/.gitlabs/Arch.TheRepo.Club/ cd /mnt/500GB/.gitlabs/Arch.TheRepo.Club/
./x86_64/updaterepo.sh $argv ./x86_64/updaterepo.sh $argv
cd $dirprev[1] cd $dirprev[1]

View File

@ -13,11 +13,11 @@ function fish_command_not_found
pacman -F $paths pacman -F $paths
while true while true
read -l -P "Would you like to install $pkgs? [Y/n] " confirm read -l -P "Would you like to install $pkgs[1]? [Y/n] " confirm
switch $confirm switch $confirm
case Y y case Y y
pacman -S $pkgs pacman -S $pkgs[1]
return return
case N n case N n
return return