How to trigger makepkg at low priority, without breaking Fish tab completion? #625
Unanswered
nyanpasu64
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I prefer to run
makepkg
at a low priority, so the compilation batch jobs don't slow down interactive usage of my computer or applications I run. Since paru doesn't support running makepkg at low priority, I've added a fish alias to run paru itself at a low priority:Unfortunately this breaks fish tab completions. Open a Fish prompt, type
paru -S bash
(or any other package really), and press Tab. The terminal hangs for several seconds then errors out.Pressing Ctrl+C while the terminal is hung generally gives the correct completion result.
Debugging
The tab completion script is
/usr/share/fish/vendor_completions.d/paru.fish
installed by theparu-bin
AUR package. The entire script runs once upon the first paru tab completion, and not at all for subsequent tab completions (even when completing different strings), regardless if the alias and hang are present or not. It seems that fish runs the script once, then uses the script's output to perform tab completions.I'm not sure how to debug the tab completion.
fish -d 3
andfish_trace=on fish
result in no output during the tab completion.fish-shell/fish-shell#7389 seems related, but appeared in fish 3.2.0, and I'm on 3.3.1 and I still get the issue.
Interestingly, a function works to set the priority without breaking tab completion:
Path forward
Q: Is there an option to run paru and/or makepkg at low priority?
I tried creating
~/path/makepkg
(you can instead use~/.local/bin/makepkg
which is more likely to work out of the box). This seems to successfully run all build processes at nice level 19 (I hope I got the script and escaping right):Q: Should I report the alias bug to fish instead of here? Or is it "works as intended"?
Beta Was this translation helpful? Give feedback.
All reactions