-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Zig item * Add zig to removable items list --------- Co-authored-by: Ilan Cosman <[email protected]>
- Loading branch information
1 parent
1af8bf7
commit 7f9d24d
Showing
10 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
function _tide_item_zig | ||
if path is $_tide_parent_dirs/build.zig | ||
zig version | string match -qr "(?<v>[\d.]+(-dev)?)" | ||
_tide_print_item zig $tide_zig_icon' ' $v | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# RUN: %fish %s | ||
_tide_parent_dirs | ||
|
||
function _zig | ||
_tide_decolor (_tide_item_zig) | ||
end | ||
|
||
set -l zigDir (mktemp -d) | ||
cd $zigDir | ||
|
||
mock zig version "echo 0.11.0" | ||
set -lx tide_zig_icon | ||
|
||
_zig # CHECK: | ||
|
||
touch build.zig | ||
_zig # CHECK: 0.11.0 | ||
|
||
mock zig version "echo 0.12.0-dev.789+e6590fea1" | ||
_zig # CHECK: 0.12.0-dev | ||
|
||
command rm -r $zigDir |