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

Enable working without tput. #1403

Merged
merged 1 commit into from
Feb 21, 2017
Merged

Enable working without tput. #1403

merged 1 commit into from
Feb 21, 2017

Conversation

jdalton
Copy link
Contributor

@jdalton jdalton commented Feb 20, 2017

This PR enables nvm to work on nases (similar to ohmyzsh/ohmyzsh#4376) by checking if tput exists before calling it.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fine change, and I'm down to merge it, but ftr "reduced systems" isn't something nvm officially supports. If it's in POSIX, it needs to be installed - if it's missing, I'd file that as a bug on the linux distro itself.

nvm.sh Outdated
NVM_COLORS="$(tput -T "${TERM:-vt100}" colors)"
local TPUT

TPUT="$(which tput)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'd want to use if nvm_has tput; then here.

@jdalton
Copy link
Contributor Author

jdalton commented Feb 20, 2017

Updated. Tested the change, it works 😄

@ljharb ljharb merged commit 7c27172 into nvm-sh:master Feb 21, 2017
@jdalton jdalton deleted the tput branch February 21, 2017 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants