-
Notifications
You must be signed in to change notification settings - Fork 137
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
Expand aliases #454
Comments
uh ok, this link is a gold mine :) |
That also provides options to #451 |
While convenient, it is not very convenient to have to refening all aliases just for pueue though. |
This was already a feature in the old pueue implementation and it was a constant pain point, since there's no good way to implement aliases.
As I said earlier, this was implemented in the first version of pueue, but users entered broken states they didn't understand and that simply couldn't be fixed by any upstream changes, since these were shell specific problems. I'm still very hesitant to allow any custom shell specific logic (or even custom shells) to be executed, unless there's a very good way of handling this. A few fun questions from the top of my head:
|
I understand, thanks for the explanations. To answer your questions:
Pick one of the
We don't, just fetch the aliases
We don't, just fetching aliases, like you do today, just without the need for an extra other file |
This will quickly become a problem, since there's no standard for
Then there's the other thing that people use different shells than In general, I don't feel too comfortable to support specific shells or external tooling. |
The only proper way to fix this (as I currently see), is to go back and revisit allowing users to setup their own shell commands. That way, users can specify the exact way their commands should be executed, with their favorite shell flavour. This will probably come with some other problems though. A few of Pueue's functionalities would probably need to be disabled if a custom user shell is detected, such as |
I added a configurable shell command. Could you check the MR out and see if you can use this? |
Turns out, there's apparently no way to pre-load any kind of |
I did some more research and managed to get this working for bash.
I had to add another configuration field Though, I wasn't able to get this running for zsh.
|
Nice! That's promising. |
I can test zsh/bash. Having a look now. |
So it's been a bit of a fight :) context for the commands below:
I realized that changing the config in zsh won't work unless a magic I could get it to work using:
then calling:
|
The custom shell is merged, so I'll close this for now :) |
A detailed description of the feature you would like to see added.
Currently, the following will fail:
It fails because in the
pueue
context, user aliases are not loaded, sofoo
is unknown.It would be useful to have an option (set as default ?) that loads user's env such as currently set aliases.
Adding
shopt -s expand_aliases
may help but I did not test.Explain your usecase of the requested feature
pueue
is very useful for a user to queue up a bunch of tasks. It is quick natural for users to already have created aliases for the individual tasks. For instance, a user may already have an alias to runfreshlam && scan
orbrew update && brew upgrade
.Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: