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! -->
* `bash`
* `zsh`
* `elixir`
* `go`
* `javascript`
@@ -31,6 +32,14 @@ ls
---
### Zsh
```zsh
ls
```
---
### Elixir
```elixir

View File

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