mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-25 00:38:20 -05:00
Updated Fish
Signed-off-by: The-Repo-Club <wayne6324@gmail.com>
This commit is contained in:
parent
0bfc0b623a
commit
cfb13fac9f
@ -1,3 +1,5 @@
|
||||
export MICRO_TRUECOLOR=1
|
||||
|
||||
for plugins in "$HOME/.config/fish/plugins/"*
|
||||
source $plugins
|
||||
end
|
||||
|
@ -20,8 +20,10 @@ function pacman
|
||||
else if [ "$argv" = --upall ]
|
||||
command sudo pacman -Fy
|
||||
command sudo pacman -Sy
|
||||
command sudo pacman -Su --noconfirm
|
||||
command paru -Su
|
||||
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 ]
|
||||
command pacsync
|
||||
else
|
||||
@ -29,11 +31,15 @@ function pacman
|
||||
end
|
||||
end
|
||||
|
||||
# Update all repos
|
||||
# Update all packages
|
||||
function upall
|
||||
pacman --upall
|
||||
end
|
||||
|
||||
function upkernel
|
||||
pacman --upkernel
|
||||
end
|
||||
|
||||
#check aur and arch packages
|
||||
function checkarch
|
||||
command sudo pacman -Qqen >~/package_list.txt
|
||||
|
@ -6,6 +6,8 @@ function updaterepo
|
||||
|
||||
switch $confirm
|
||||
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/
|
||||
./x86_64/updaterepo.sh $argv
|
||||
cd $dirprev[1]
|
||||
|
@ -13,11 +13,11 @@ function fish_command_not_found
|
||||
pacman -F $paths
|
||||
|
||||
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
|
||||
case Y y
|
||||
pacman -S $pkgs
|
||||
pacman -S $pkgs[1]
|
||||
return
|
||||
case N n
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user