sujaykumarh/dotfiles

show [package] version in prompt

sujaykumarh opened this issue ยท 0 comments

  • 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
โžœ