Ecosyste.ms: Awesome

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

https://github.com/Ryooooooga/croque

Fast and customizable shell prompt
https://github.com/Ryooooooga/croque

fish fish-prompt shell-prompt zsh zsh-prompt zsh-theme

Last synced: about 2 months ago
JSON representation

Fast and customizable shell prompt

Lists

README

        

# Croque

[![](https://github.com/Ryooooooga/croque/workflows/Build/badge.svg)](https://github.com/Ryooooooga/croque/actions)
[![](https://badgen.net/crates/v/croque)](https://crates.io/crates/croque)

Fast and customizable shell prompt.

![](docs/screenshot.png)

## Optional Requirements

- [gh](https://github.com/cli/cli)
- [glab](https://docs.gitlab.com/ee/integration/glab)

## Installation

### From source

```sh
cargo install croque
```

### From Homebrew

```sh
brew install ryooooooga/tap/croque
```

### From precompiled binary

[releases](https://github.com/Ryooooooga/croque/releases)

### Bash

```bash
# ~/.bashrc
eval "$(croque init bash)"
```

### Zsh

```zsh
# ~/.zshrc
eval "$(croque init zsh)"
```

#### Using [Zinit](https://github.com/zdharma-continuum/zinit)

```zsh
# .zshrc
zinit light-mode from'gh-r' as'program' for \
atclone'./croque init zsh >croque.zsh; zcompile croque.zsh' atpull'%atclone' \
src'croque.zsh' \
@'Ryooooooga/croque'
```

### Fish

```fish
# ~/.config/fish/config.fish
croque init fish | source
```

## Configuration

```sh
$ croque config > ~/.config/croque/config.yaml
```