mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-07 11:29:39 +08:00
Instant use for test rawstr4c
This commit is contained in:
parent
a54f704719
commit
aa2fd3381d
43
src/recipe/ware/rawstr4c.md
Normal file
43
src/recipe/ware/rawstr4c.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# rawstr4c input
|
||||||
|
|
||||||
|
- prefix = `_rawstr`
|
||||||
|
- postfix = `:use-language`
|
||||||
|
|
||||||
|
- translate = `:escape`
|
||||||
|
- output = `terminal`
|
||||||
|
|
||||||
|
|
||||||
|
## Homebrew
|
||||||
|
|
||||||
|
### Bash config
|
||||||
|
|
||||||
|
- keep-prefix = `true`
|
||||||
|
- keep-postfix = `true`
|
||||||
|
- name = `config`
|
||||||
|
- name-literally = `false`
|
||||||
|
|
||||||
|
最终输出变量将会成为 `_rawstr4c_config_in_bash`
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# ------ chsrc BLOCK BEGIN for Homebrew ------
|
||||||
|
export HOMEBREW_BREW_GIT_REMOTE="@1@/git/homebrew/brew.git"
|
||||||
|
export HOMEBREW_CORE_GIT_REMOTE="@1@/git/homebrew/homebrew-core.git"
|
||||||
|
# for bottles
|
||||||
|
export HOMEBREW_API_DOMAIN="@1@/homebrew-bottles/api"
|
||||||
|
export HOMEBREW_BOTTLE_DOMAIN="@1@/homebrew-bottles"
|
||||||
|
# ------ chsrc BLOCK ENDIN for Homebrew ------
|
||||||
|
```
|
||||||
|
|
||||||
|
### Fish config
|
||||||
|
|
||||||
|
- language = `fish`
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# ------ chsrc BLOCK BEGIN for Homebrew ------
|
||||||
|
set -x HOMEBREW_BREW_GIT_REMOTE "@1@/git/homebrew/brew.git"
|
||||||
|
set -x HOMEBREW_CORE_GIT_REMOTE "@1@/git/homebrew/homebrew-core.git"
|
||||||
|
# for bottles
|
||||||
|
set -x HOMEBREW_API_DOMAIN "@1@/homebrew-bottles/api"
|
||||||
|
set -x HOMEBREW_BOTTLE_DOMAIN "@1@/homebrew-bottles"
|
||||||
|
# ------ chsrc BLOCK ENDIN for Homebrew ------
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user