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

show [package] version in prompt #28

Closed
2 tasks done
sujaykumarh opened this issue Mar 22, 2022 · 0 comments
Closed
2 tasks done

show [package] version in prompt #28

sujaykumarh opened this issue Mar 22, 2022 · 0 comments
Labels
🎨 enhancement New feature or request

Comments

@sujaykumarh
Copy link
Owner

sujaykumarh commented Mar 22, 2022

  • Show NodeJS package version if package.json available

  • Show git tag if available


Example

no tag but package.json version

user@host [ ~/node-project ] on 🌿 main πŸ“¦ v1.0.0
➜


when current commit is a tag with package.json version

user@host [ ~/node-project ] on 🌿 main 🏷️ v1.0.0 πŸ“¦ v1.0.0
➜

@sujaykumarh sujaykumarh added the 🎨 enhancement New feature or request label Mar 22, 2022
@sujaykumarh sujaykumarh added this to the better dotfiles milestone Mar 22, 2022
sujaykumarh added a commit that referenced this issue Mar 22, 2022
add package.json version & git tag of current commit to prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant