Minimalist, customizable shell written in C99 with syntax highlighting and no dependency
Find a file
2024-02-11 01:07:02 +00:00
.gitignore gitignore and makefile fix 2024-02-06 18:56:42 +00:00
color.c fix seg fault on prompt 2024-02-10 23:31:29 +00:00
color.h fix seg fault on prompt 2024-02-10 23:31:29 +00:00
commands.c update version 2024-02-11 01:07:02 +00:00
commands.h background jobs & stdout,in,err redirect 2024-02-11 01:01:28 +00:00
constants.h background jobs & stdout,in,err redirect 2024-02-11 01:01:28 +00:00
history.c fix history navigation bug and improve code by memalloc 2024-02-10 17:29:58 +00:00
history.h fix history navigation bug and improve code by memalloc 2024-02-10 17:29:58 +00:00
job.c background jobs & stdout,in,err redirect 2024-02-11 01:01:28 +00:00
job.h background jobs & stdout,in,err redirect 2024-02-11 01:01:28 +00:00
LICENSE license and man page 2024-02-06 18:56:24 +00:00
log background jobs & stdout,in,err redirect 2024-02-11 01:01:28 +00:00
Makefile update version 2024-02-11 01:07:02 +00:00
README.md background jobs & stdout,in,err redirect 2024-02-11 01:01:28 +00:00
rush.1 license and man page 2024-02-06 18:56:24 +00:00
rush.c fix seg fault on prompt 2024-02-10 23:31:29 +00:00
rush.h fix history navigation bug and improve code by memalloc 2024-02-10 17:29:58 +00:00

rush

rush is a minimalistic shell for Unix systems written in C.

  • Disclaimer: This project is for me to learn to write Unix syscalls, code might be inefficient, feel free to point out the mistakes and open a issue for that!

Preview

Valid command Invalid command

Dependencies

  • gcc

Building

$ make
$ sudo make install

Usage

$ ./rush

Features

  • No dependencies except a compiler
  • Showing current time and directory with custom color
  • Syntax highlighting on valid commands using ANSI colors
  • History navigation using up and down keys with history command
  • Support for environment variables
  • Editing using left and right arrow keys
  • !! to repeat last command
  • Pipes
  • autojump to directorys
  • stdin, stdout, stderr redirect
  • background jobs

Built in commands

  • cd
  • help
  • exit
  • history
  • export
  • source
  • j
  • bg

Todo Features

  • tab completion

Credits