Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/_tide_item_bun.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function _tide_item_bun
if path is $_tide_parent_dirs/bun.lockb
if path is $_tide_parent_dirs/bun.lock
bun --version | string match -qr "(?<v>.*)"
_tide_print_item bun $tide_bun_icon' ' $v
end
Expand Down
2 changes: 1 addition & 1 deletion functions/tide/configure/icons.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tide_aws_icon  # Actual aws glyph is harder to see
tide_bun_icon 󰳓
tide_bun_icon
tide_character_icon ❯
tide_character_vi_icon_default ❮
tide_character_vi_icon_replace ▶
Expand Down
9 changes: 5 additions & 4 deletions tests/_tide_item_bun.test.fish
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ end
set -l tmpdir (mktemp -d)
cd $tmpdir

mock bun --version "echo 1.0.24"
set -lx tide_bun_icon 󰳓
mock bun --version "echo 1.1.39"
set -lx tide_bun_icon

_bun # CHECK:

touch bun.lockb
_bun # CHECK: 󰳓 1.0.24
touch bun.lock
_bun # CHECK:  1.1.39
command rm bun.lock

command rm -r $tmpdir
Loading