2 releases

0.1.1 Aug 8, 2020
0.1.0 Aug 7, 2020

#34 in #shell-prompt

MIT license

20KB
476 lines

nice_prompt

Minimal prompt for my shell.

asciicast

Usage

USAGE:
    nice_prompt [FLAGS]

    FLAGS:
        -h, --help       Prints help information
        -l, --logging    Stores logging outupt in a cache directory.
        -V, --version    Prints version information

To log use the -l flag. Logs are present at following paths:

Platform Example
Linux /home/alice/.config/nice_prompt/
macOS /Users/Alice/Library/Application Support/nice_prompt/
Windows C:\Users\Alice\AppData\Roaming\nice_prompt

Install

  • Install rust

  • Install nice_prompt

    • using cargo

      cargo install nice_prompt
      
    • using git

      cargo install --force --git https://github.com/samyakahuja/nice_prompt.git
      
  • Put this in your .bashrc

    PS1='$(nice_prompt)'
    

Dependencies

~12–22MB
~343K SLoC