Add support for ZSH (#225)

This commit is contained in:
Even Gabrielsen
2023-03-30 22:14:16 +02:00
committed by GitHub
parent 33fc1c0442
commit 15248d2023
2 changed files with 14 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ Currently supported languages:
<!-- Use comments in your markdown! --> <!-- Use comments in your markdown! -->
* `bash` * `bash`
* `zsh`
* `elixir` * `elixir`
* `go` * `go`
* `javascript` * `javascript`
@@ -31,6 +32,14 @@ ls
--- ---
### Zsh
```zsh
ls
```
---
### Elixir ### Elixir
```elixir ```elixir

View File

@@ -17,6 +17,7 @@ type Language struct {
// Supported Languages // Supported Languages
const ( const (
Bash = "bash" Bash = "bash"
Zsh = "zsh"
Elixir = "elixir" Elixir = "elixir"
Go = "go" Go = "go"
Javascript = "javascript" Javascript = "javascript"
@@ -38,6 +39,10 @@ var Languages = map[string]Language{
Extension: "sh", Extension: "sh",
Commands: cmds{{"bash", "<file>"}}, Commands: cmds{{"bash", "<file>"}},
}, },
Zsh: {
Extension: "zsh",
Commands: cmds{{"zsh", "<file>"}},
},
Elixir: { Elixir: {
Extension: "exs", Extension: "exs",
Commands: cmds{{"elixir", "<file>"}}, Commands: cmds{{"elixir", "<file>"}},