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

No formulae available #242

Open
veics opened this issue Sep 20, 2021 · 2 comments
Open

No formulae available #242

veics opened this issue Sep 20, 2021 · 2 comments

Comments

@veics
Copy link

veics commented Sep 20, 2021

I don't have any formulae displayed as installed, all categories are showing "2", and the rows are populated with `tput: No value for $TERM and no -T specified".

I have 11.6 + bash as default shell.

If I start "Cakebrew" from command line, everything works fine.

@drpoutine
Copy link

@veics your ps1 customizations dont work on non interactive shells. you have to update your bash_profile/bashrc with if checks

@superatomic
Copy link

@veics As a quick fix, wherever you use tput § in your startup files,
you can instead run [ -n "$TERM" ] && tput §* or [ -t 0 ] && tput §,
where § is whatever arguments you provide to tput.

For example, replace a line like export COLOR_GREEN="$(tput setaf 2)" with export COLOR_GREEN="$([ -t 0 ] && tput setaf 2)"

It might cause false positives in cases where you want tput to run, but it makes Cakebrew work.

*Untested, but probably better

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

No branches or pull requests

3 participants