mirror of
https://github.com/IlanCosman/tide.git
synced 2024-10-05 13:17:42 +03:00
fix changes
This commit is contained in:
parent
8db7142d0b
commit
94f056ae6c
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user