Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,32 +222,36 @@ You can display the default YAML configuration by running `gaze -y`.

```yaml
commands:
- ext: .go
cmd: go run "{{file}}"
- ext: .py
cmd: python "{{file}}"
- ext: .rb
cmd: ruby "{{file}}"
- ext: .js
cmd: node "{{file}}"
- ext: .bash
cmd: bash "{{file}}"
- ext: .cpp
cmd: |
gcc "{{file}}" -o"{{base0}}.out"
./"{{base0}}.out"
- ext: .d
cmd: dmd -run "{{file}}"
- ext: .go
cmd: go run "{{file}}"
- ext: .groovy
cmd: groovy "{{file}}"
- ext: .php
cmd: php "{{file}}"
- ext: .java
cmd: java "{{file}}"
- ext: .js
cmd: node "{{file}}"
- ext: .kts
cmd: kotlinc -script "{{file}}"
- ext: .php
cmd: php "{{file}}"
- ext: .py
cmd: python "{{file}}"
- ext: .rb
cmd: ruby "{{file}}"
- ext: .rs
cmd: |
rustc "{{file}}" -o"{{base0}}.out"
./"{{base0}}.out"
- ext: .cpp
cmd: |
gcc "{{file}}" -o"{{base0}}.out"
./"{{base0}}.out"
- ext: .sh
cmd: sh "{{file}}"
- ext: .ts
cmd: |
tsc "{{file}}" --out "{{base0}}.out"
Expand Down
32 changes: 18 additions & 14 deletions pkg/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,36 @@ package config
func Default() string {
return `# Gaze configuration(priority: default < ~/.gaze.yml < ~/.config/gaze/gaze.yml < -f option)
commands:
- ext: .go
cmd: go run "{{file}}"
- ext: .py
cmd: python "{{file}}"
- ext: .rb
cmd: ruby "{{file}}"
- ext: .js
cmd: node "{{file}}"
- ext: .bash
cmd: bash "{{file}}"
- ext: .cpp
cmd: |
gcc "{{file}}" -o"{{base0}}.out"
./"{{base0}}.out"
- ext: .d
cmd: dmd -run "{{file}}"
- ext: .go
cmd: go run "{{file}}"
- ext: .groovy
cmd: groovy "{{file}}"
- ext: .php
cmd: php "{{file}}"
- ext: .java
cmd: java "{{file}}"
- ext: .js
cmd: node "{{file}}"
- ext: .kts
cmd: kotlinc -script "{{file}}"
- ext: .php
cmd: php "{{file}}"
- ext: .py
cmd: python "{{file}}"
- ext: .rb
cmd: ruby "{{file}}"
- ext: .rs
cmd: |
rustc "{{file}}" -o"{{base0}}.out"
./"{{base0}}.out"
- ext: .cpp
cmd: |
gcc "{{file}}" -o"{{base0}}.out"
./"{{base0}}.out"
- ext: .sh
cmd: sh "{{file}}"
- ext: .ts
cmd: |
tsc "{{file}}" --out "{{base0}}.out"
Expand Down