Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Custom AUR Helper #265

Closed
0blivi0nis opened this issue Sep 24, 2024 · 4 comments
Closed

[FEATURE] Custom AUR Helper #265

0blivi0nis opened this issue Sep 24, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@0blivi0nis
Copy link

0blivi0nis commented Sep 24, 2024

Is your feature request related to a problem? Please describe.
Yes, currently the available options are yay and paru only. I prefer pikaur since I can edit PKGFILES before installing and also since I understand python. This forces me to install either yay or paru just for the hyprland setup to work properly leaving me with additional packages, or as i see it as bloat.

Describe the solution you'd like
I have a solution already available since i use this function in my own dotfiles scripts.

aur_helper() {
AUR_HELPER=$(gum choose --cursor "[ • ] " --cursor-prefix "[ • ] " --selected-prefix "[ ✓ ] " --unselected-prefix "[ ] " "paru" "yay" "pikaur" "trizen" "aurman" "pacaur" "pakku")
echo -e "Installing $green$ITALICS$AUR_HELPER"$NORMAL
cd ~
git clone "https://aur.archlinux.org/$AUR_HELPER.git"
cd ~/$AUR_HELPER
makepkg -si --noconfirm
cd ~
rm -rf $AUR_HELPER
echo -e $green$ITALICS"$AUR_HELPER$NORMAL Installed."
}

When this function is called, a gum choose command is run with the available options, in this case, most of the ones listed on the Arch Wiki and turn the answer of that command to the variable AUR_HELPER. The rest is pretty straight forward and it also cleans up after itself by deleting the cloned folder.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
I suggest keeping the the checks for yay and paru and only modify the script where it asks to install a helper when there isnt one.

@0blivi0nis 0blivi0nis added the enhancement New feature or request label Sep 24, 2024
@0blivi0nis 0blivi0nis changed the title [FEATURE] Custom Inputs for AUR Helper [FEATURE] Custom AUR Helper Sep 24, 2024
@mylinuxforwork
Copy link
Owner

@0blivi0nis This is definitely a valuable feedback and a good suggestion. I will look into your proposal as soon as possible.

@mylinuxforwork mylinuxforwork added the to be confirmed Issue is currently under review and has not been released label Sep 24, 2024
@0blivi0nis
Copy link
Author

I have included this in my ZEN ZSH pull request

@mylinuxforwork
Copy link
Owner

#269

@mylinuxforwork mylinuxforwork removed the to be confirmed Issue is currently under review and has not been released label Oct 5, 2024
@mylinuxforwork mylinuxforwork added this to the v2.9.7 milestone Oct 5, 2024
@mylinuxforwork
Copy link
Owner

I will focus on yay and paru

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants