mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
4f1002c3df
* add node * Use string trim instead Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
19 lines
250 B
Fish
19 lines
250 B
Fish
# RUN: %fish %s
|
|
|
|
function _node
|
|
_tide_decolor (_tide_item_node)
|
|
end
|
|
|
|
set -l tmpdir (mktemp -d)
|
|
cd $tmpdir
|
|
|
|
mock node --version "echo v16.5.0"
|
|
set -lx tide_node_icon ⬢
|
|
|
|
_node # CHECK:
|
|
|
|
touch package.json
|
|
_node # CHECK: ⬢ 16.5.0
|
|
|
|
rm -r $tmpdir
|