-
Notifications
You must be signed in to change notification settings - Fork 241
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
Custom apt update upgrade autoremove alias will only update then stops. #231
Comments
Hi. I'm looking into your issue right now. Let's get straight to it:
Cheers |
Hi. Sorry for the late reply, life got a bit hectic but all is calm now. All colour changes removed completely, no fancy formatting and all aliases are simple one liners so could it be that the prompt script is simply stopping the alias at the end of the first line and going no further? I've tried to emulate what your prompt script does with a PS1 line in the .bashrc file but that was disastrous lol so I reverted back. On a side note your greeter script alerted me to a few failing services which is great and I've since remedied. |
This is VERY odd. For instance, if you use the full synth-shell package, you get some aliases right out of the gate, such as |
Sure, it's quite long as I've accumulated a few aliases over the years mostly for convenience. So I've completey removed all .bash* files from my home directory and started from scratch. Then I put this back in .bash_aliases: Restarted all 3 terminals and as predicted, it doesn't reach the second line. |
I'm on the go right now, I'll have a better look at your response once I
get back home. Meanwhile, have you tried converting your alias to a single
line using `&&` and `||` to concatenate commands. This is obviously not the
"good" solution, I'd like to solve the root problem, not find a workaround.
But if it still doesn't work when the command is a one liner, that could be
a good hint of what's going on ;)
…On Fri, Aug 26, 2022 at 10:38 AM ru55-t ***@***.***> wrote:
Sure, it's quite long as I've accumulated a few aliases over the years
mostly for convenience.
Yeah, all the other aliases are fine but I think this might be because
their only 1 liners.
Could it be that I'm using sudo with apt?
So I've completey removed all .bash* files from my home directory and
started from scratch.
Uninstalled synth-shell completely and reinstalled it leaving nothing out.
I have only setup the source .bash_aliases in .bashrc while only using the
update all alias 'sal' in the .bash_aliases file.
Same results across all 3 terminals (konsole, gnome-terminal and tilda)
then I disabled all but synteh-shell-prompt, restarted all terminals for
the same results.
Then I put this back in .bash_aliases:
alias sau="sudo apt update -o APT::Color::Yellow='$(printf '\e[32m')'
echo -e '\n\033[32m* General update done.\033[0m\n'"
Restarted all 3 terminals and as predicted, it doesn't reach the second
line.
bash_aliases.zip
<https://github.com/andresgongora/synth-shell/files/9431232/bash_aliases.zip>
—
Reply to this email directly, view it on GitHub
<#231 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC36INTJUIYDMRC3MMGG5Z3V3B7CFANCNFSM56VT7WVQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
No I haven't tried that, will give it a go. With the 1st change I get the > bash next line prompt which I don't know how to use in conjunction with my alias, so I Ctrl+z to exit out of it. |
I have a bash alias that as the title says updates upgrades cleans and autoremoves packages in apt that prior to installing synth-shell worked well but not after installing it.
It gets through the first update step and goes no further.
To Reproduce
From the terminal I type my alias (which you can view in the screenshot):
sal
then enter my passowrd and then apt starts the update process, finishtes that but then stops.
Expected behavior
Is that the apt alias 'sal' goes through all the update upgrade autoremove and cleaning steps without any stops.
I think my code is incompatible with synth-shell and I've tried a few different tacks in formatting, even aliasing a scirpt to complete the process to no avail.
Screenshots
Additional context
Changing apts update flash colour from ubuntu orange to a nicer green is the trick I'm trying to preserve and have only managed to get it working in this current format, with any deviations failing.
Any suggestions as a work around are welcome.
Cheers.
The text was updated successfully, but these errors were encountered: