From d8d07f8361e6406953319c82369786560bcb7808 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Thu, 25 Jan 2024 12:10:41 -0800 Subject: [PATCH] Fixes --- CHANGELOG.md | 5 +++-- functions/_tide_item_node.fish | 4 +--- functions/tide.fish | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d3b3ce..ce7bea6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,10 @@ # Changelog -## [v6.2.0][] (Jan 23 2024) +## [v6.2.0][] (???) ### Features -- Add a new `bun` item. +- Add a new `bun` item ([#485][] - @will-stone) ## [v6.1.1][] (Dec 27 2023) @@ -585,6 +585,7 @@ [#470]: https://github.com/IlanCosman/tide/issues/470 [#472]: https://github.com/IlanCosman/tide/issues/472 [#474]: https://github.com/IlanCosman/tide/issues/474 +[#485]: https://github.com/IlanCosman/tide/issues/485 [prettier action]: https://github.com/actionsx/prettier [super-linter]: https://github.com/github/super-linter [v1.0.0]: https://github.com/IlanCosman/tide/tree/v1.0.0 diff --git a/functions/_tide_item_node.fish b/functions/_tide_item_node.fish index 07777ff..fc57832 100644 --- a/functions/_tide_item_node.fish +++ b/functions/_tide_item_node.fish @@ -1,7 +1,5 @@ function _tide_item_node - if path is $_tide_parent_dirs/package.json and - # If Bun is detected assume that is being used over node - not path is $_tide_parent_dirs/bun.lockb + if path is $_tide_parent_dirs/package.json node --version | string match -qr "v(?.*)" _tide_print_item node $tide_node_icon' ' $v end diff --git a/functions/tide.fish b/functions/tide.fish index 4b115a1..092a722 100644 --- a/functions/tide.fish +++ b/functions/tide.fish @@ -2,7 +2,7 @@ function tide --description 'Manage your Tide prompt' argparse --stop-nonopt v/version h/help -- $argv if set -q _flag_version - echo 'tide, version 6.2.0' + echo 'tide, version 6.1.1' else if set -q _flag_help _tide_help else if functions --query _tide_sub_$argv[1]