I do have a software in install and update via an .sh, and made in fish a function (alias for zsh or bash user) so “maintenance” run cachy update followed by my script (written the output in a way it follow the design of cachy update)
i would like to know if it’s possible to make the left click on cachy update also run this script when done (before the Q).
Thanks will check it, i asked because i hoped cachy update itself would allow a “launch script after update” because the auto quit part is what block my “normal” way to add somthing like this (with alias or other simple thing).
But anyway thanks for the tips (if someone have an idea i take it (and will post here if i found a reliable way for the next that might want to do this)).
cachy-update is a very soft fork of arch-update so if you were looking for ways to extend its capability by running a script post update, that’d be where to look:
From a brief skim, it doesn’t appear to be capable of that. Your best bet is probably what Biscuits suggested, though I also haven’t done this myself. In theory it should work though.
If what you’re planning is using alias within the script, i’m afraid it wont be possible, because the hook script which is kind of pacman feature, high chance wont recognize your alias, so inside your .sh later on, you should use non alias command, you might want to dig more about this on wiki or helped by Ai, since i think, the hook script will be likely triggered by system with sudo level