/yash

Primary LanguageRust

yash

Yet Another SHell. Yup, very creative. Developing in my free time to see how far I can go.

Why?

Just a little experiment to learn how shells work and what takes to make one.

How to make a cool prompt

To make a prompt, you change the variable $PS1. Special characters after % are replaced with information described in the following table:

char meaning
n Current user's username
m Machine's hostname
h Current working directory, replaces $HOME with ~
F{#rrggbb} Set the foreground color to #rrggbb
f Reset foreground color

Example:

PS1="%F{#ff8080}%h%f $ "

default_prompt