Skip to content

anxiousmodernman/candypaint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

candypaint

Candy coated prompts for the ion shell. Tested on Linux only, for now.

Installation

Use cargo. Note that ~/.cargo/bin must be on your PATH

cargo install --git https://github.com/anxiousmodernman/candypaint

Then, add the following to ~/.config/ion/initrc

# use the "chad" theme as your prompt
fn PROMPT
    let tmp = "/tmp/candypaint"
    echo -n $(candypaint chad) > $tmp
    source $tmp
    echo -n $CANDY
end

In this example, candypaint writes a script to $tmp. That script exports a CANDY variable, our dynamically generated prompt. It must be sourced by ion to interpret the escape characters correctly.

Overview

This project aims to provide zero-config prompts for ion. Prompt modifications might get deeper integration into ion in the future, but until then we can use a dedicated tool to shell out to in our initrc.

Themes

We have 2 so far.

chad

chad

darkside

darkside

A theme is simply a function that returns Option<String> built from your environment (your path, your git status, etc.)

About

candy coated prompts for the ion shell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages