diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 02ff493a7..a46630366 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -1,3 +1,5 @@ +export MICRO_TRUECOLOR=1 + for plugins in "$HOME/.config/fish/plugins/"* source $plugins end diff --git a/fish/.config/fish/functions/99_pacman.fish b/fish/.config/fish/functions/99_pacman.fish index 04658d37f..19c521ecd 100644 --- a/fish/.config/fish/functions/99_pacman.fish +++ b/fish/.config/fish/functions/99_pacman.fish @@ -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 diff --git a/fish/.config/fish/functions/99_repos.fish b/fish/.config/fish/functions/99_repos.fish index 9bd2bcd24..b51317106 100644 --- a/fish/.config/fish/functions/99_repos.fish +++ b/fish/.config/fish/functions/99_repos.fish @@ -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] diff --git a/fish/.config/fish/plugins/__fish_command_not_found.fish b/fish/.config/fish/plugins/__fish_command_not_found.fish index 7de747e76..8c40513e5 100644 --- a/fish/.config/fish/plugins/__fish_command_not_found.fish +++ b/fish/.config/fish/plugins/__fish_command_not_found.fish @@ -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