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! -->
|
<!-- 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
|
||||||
|
|||||||
@@ -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>"}},
|
||||||
|
|||||||
Reference in New Issue
Block a user