diff --git a/README.md b/README.md index 032289d..9d05baa 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/pkg/config/default.go b/pkg/config/default.go index 6834b31..eb91895 100644 --- a/pkg/config/default.go +++ b/pkg/config/default.go @@ -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"