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

app croq

Fast and customizable shell prompt

1 unstable release

new 0.8.2 Dec 21, 2024

#5 in #fish

MIT license

385KB
4.5K SLoC

Rust 4K SLoC // 0.0% comments Zsh 449 SLoC // 0.4% comments Just 8 SLoC BASH 7 SLoC

Croq

Fast and customizable shell prompt.

Optional Requirements

Installation

From source

cargo install croq

From Homebrew

brew install ryooooooga/tap/croq

From precompiled binary

releases

Bash

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

Zsh

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

Using Zinit

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

Fish

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

Configuration

$ croq config > ~/.config/croq/config.yaml

Dependencies

~16–46MB
~729K SLoC