#shell-prompt #shell #prompt #zsh #fish #bash

app croque

Fast and customizable shell prompt

17 releases

0.6.1 Feb 17, 2024
0.5.7 Feb 13, 2024
0.5.5 Oct 9, 2023
0.5.3 Jun 12, 2023
0.4.0 Mar 23, 2023

#56 in Configuration

43 downloads per month

MIT license

390KB
5K SLoC

Rust 3.5K SLoC Zsh 1K SLoC // 0.2% comments Shell 54 SLoC // 0.0% comments BASH 7 SLoC

Croque

Fast and customizable shell prompt.

Optional Requirements

Installation

From source

cargo install croque

From Homebrew

brew install ryooooooga/tap/croque

From precompiled binary

releases

Bash

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

Zsh

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

Using Zinit

# .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

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

Configuration

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

Dependencies

~16–28MB
~452K SLoC