Git Product home page Git Product logo

90s's Introduction

90s

Minimalist, customizable shell written in C99 with syntax highlighting.

  • 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

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
  • Git integration
  • Allow arguments with space in double quotes
  • Underline file path if it exists echo -e "\033[4mabc\033[0m"
  • Aliases

Usage

$ ./90s

# > to redirect stdout
# < to redirect stdin
# 2> to redirect stderr
# >> to append to file
# & to run command in background
# | to pipe
# !! to repeat last command
# >& to redirect both stdout and stderr

Dependencies

None

Building

You will need to run these with elevated privilages.

$ make
# make install

Notes

  • History is either saved in HOME or XDG_CONFIG_HOME if it is defined

Contributions

Contributions are welcomed, feel free to open a pull request.

License

This project is licensed under the GNU Public License v3.0. See LICENSE for more information.

Credits

90s's People

Contributors

night0721 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.