An open API service indexing awesome lists of open source software.

https://github.com/veelenga/crystal-zsh

.oh-my-zsh plugin for Crystal
https://github.com/veelenga/crystal-zsh

crystal oh-my-zsh-plugin zsh-plugins

Last synced: 2 months ago
JSON representation

.oh-my-zsh plugin for Crystal

Awesome Lists containing this project

README

        

# .oh-my-zsh plugin for [Crystal](https://github.com/crystal-lang/crystal)

* `cr` aliases `crystal`

* `cri` aliases `crystal init`

* `crb` aliases `crystal build`

* `crd` aliases `crystal deps`

* `crdo` aliases `crystal docs`

* `cren` aliases `crystal env`

* `cre` aliases `crystal eval`

* `crp` aliases `crystal play`

* `crs` aliases `crystal spec`

* `crr` aliases `crystal run`

* `crt` aliases `crystal tool`

* `crtc` aliases `crystal tool context`

* `crtf` aliases `crystal tool format`

* `crth` aliases `crystal tool hierarchy`

* `crti` aliases `crystal tool implementations`

* `crtt` aliases `crystal tool types`

**Note:** you may also want to use [autocompletions for Crystal](https://github.com/crystal-lang/crystal/blob/master/etc/completion.zsh).
It is installed automatically with Crystal distribution.

## Installation

### [Antigen](https://github.com/zsh-users/antigen)

Add `antigen bundle veelenga/crystal-zsh` to your `.zshrc` with your other bundle commands. Antigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running zsh with `antigen bundle veelenga/crystal-zsh` for testing before adding it to your `.zshrc`.

### Oh-My-Zsh

1. Clone repo into your custom plugins directory:
```sh
git clone https://github.com/veelenga/crystal-zsh.git ~/.oh-my-zsh/custom/plugins/crystal
```

2. Add crystal to the plugins line of your `.zshrc` file (e.g. `plugins=(rails git crystal)`)

### [Zgen](https://github.com/tarjoilija/zgen)

Add `zgen load veelenga/crystal-zsh` to your .zshrc file in the same function you're doing your other `zgen load` calls in.