Skip to content

Diegovsky/yash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages