Skip to content

sarthak2007/SASH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

SASH

An attempt to make a shell.
Tracking history of commands, using arrow keys to get history and autocomplete using tab are done by using readline library provided by GNU.
Currently the commands using pipes are not implemented in this shell.

To install readline library

Write this command in terminal:
sudo apt-get install libreadline-dev

To run the shell

Copy the C code and save it as myshell.c in any directory.
Paste this line in your .bashrc
alias gmm="gcc myshell.c -L/usr/local/lib -I/usr/local/include -lreadline "
Then open terminal and move to the directory where myshell.c is present and write:
gmm
./a.out
And there's your shell :)

About

Interactive shell similar to Bash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages