mirror of
https://github.com/maaslalani/slides.git
synced 2026-01-09 14:28:05 -05:00
Add support for ZSH (#225)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>"}},
|
||||
|
||||
Reference in New Issue
Block a user