fix changes

This commit is contained in:
Ilan Cosman 2023-07-07 08:06:55 -07:00
parent 8db7142d0b
commit 94f056ae6c
6 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
function _tide_item_crystal
if path is $_tide_parent_dirs/shard.yml
crystal --version | string match -qr "(?<ver>[\d.]+)"
_tide_print_item crystal "$tide_crystal_icon $ver"
crystal --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item crystal $tide_crystal_icon' ' $v
end
end

View File

@ -1,6 +1,6 @@
function _tide_item_go
if path is $_tide_parent_dirs/go.mod
go version | string match -qr "(?<ver>[\d.]+)"
_tide_print_item go "$tide_go_icon $ver"
go version | string match -qr "(?<v>[\d.]+)"
_tide_print_item go $tide_go_icon' ' $v
end
end

View File

@ -1,6 +1,6 @@
function _tide_item_java
if path is $_tide_parent_dirs/pom.xml
java -version &| string match -qr "(?<ver>[\d.]+)"
_tide_print_item java "$tide_java_icon $ver"
java -version &| string match -qr "(?<v>[\d.]+)"
_tide_print_item java $tide_java_icon' ' $v
end
end

View File

@ -1,6 +1,6 @@
function _tide_item_node
if path is $_tide_parent_dirs/package.json
node --version | string match -qr "v(?<ver>.*)"
_tide_print_item node $tide_node_icon' ' $ver
node --version | string match -qr "v(?<v>.*)"
_tide_print_item node $tide_node_icon' ' $v
end
end

View File

@ -1,6 +1,6 @@
function _tide_item_php
if path is $_tide_parent_dirs/composer.json
php --version | string match -qr "(?<ver>[\d.]+)"
_tide_print_item php "$tide_php_icon $ver"
php --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item php $tide_php_icon' ' $v
end
end

View File

@ -1,6 +1,6 @@
function _tide_item_rustc
if path is $_tide_parent_dirs/Cargo.toml
rustc --version | string match -qr "(?<ver>[\d.]+)"
_tide_print_item rustc "$tide_rustc_icon $ver"
rustc --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item rustc $tide_rustc_icon' ' $v
end
end