mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
zig plugin
This commit is contained in:
parent
02b52a03a5
commit
d756224a4b
1 changed files with 21 additions and 0 deletions
21
plugins/zig/zig.plugin.zsh
Normal file
21
plugins/zig/zig.plugin.zsh
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
|
||||||
|
# Zig as C & CXX compiler (clang wrapper)
|
||||||
|
alias ZCC="zig cc -fno-sanitize=all -lc"
|
||||||
|
alias ZCXX="zig c++ -fno-sanitize=all -lc -lc++"
|
||||||
|
|
||||||
|
# Zig build-system project
|
||||||
|
alias zbuild="zig build"
|
||||||
|
alias zbuildrun="zig build run"
|
||||||
|
alias zbuildtest="zig build test"
|
||||||
|
alias zbuildexe="zig init-exe"
|
||||||
|
alias zbuildlib="zig init-lib"
|
||||||
|
|
||||||
|
# Other Commands
|
||||||
|
alias zfmt="zig fmt"
|
||||||
|
alias zlint="zig ast-check"
|
||||||
|
alias c2zig="zig translate-c"
|
||||||
|
alias ztest="zig test"
|
||||||
|
alias zrun="zig run"
|
||||||
|
alias zversion="zig version"
|
||||||
|
|
||||||
|
alias zfind='find . -name "*.zig"'
|
Loading…
Reference in a new issue