This repository has been archived on 2022-06-28. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
Go to file
Dull Bananas 01f1439bc3 Fix installation issue
This commit was made with Dish
2019-12-12 00:41:03 +00:00
.github/workflows Fix thing 2019-11-29 10:17:11 -07:00
artwork Add logo (#1) 2019-11-28 08:28:11 -07:00
dish Fix installation issue 2019-12-12 00:41:03 +00:00
docs Improve docs 2019-12-10 18:03:08 -07:00
tests Add time tag for prompts 2019-12-06 18:53:12 -07:00
.gitignore Initial commit 2019-11-22 19:07:15 -07:00
LICENSE Initial commit 2019-11-22 19:07:15 -07:00
Makefile Add code coverage 2019-11-29 10:02:55 -07:00
README.md remove space 2019-12-01 19:53:21 -07:00
demo_script.dish Add multiline comments 2019-12-01 07:57:16 -07:00
readthedocs.yml Fix readthedocs 2019-11-30 13:29:44 -07:00
setup.py Fix installation issue 2019-12-12 00:41:03 +00:00

README.md

A new Unix shell implemented in Python


Gitter Codacy coverage Codacy grade Maintenance PyPI - Python Version PyPI PyPI - License


Dish is a new Unix shell implemented in Python with Flask-like configuration and extensibility. It is currently in alpha stage of development. It works by having a Python script called "dish" somewhere in PATH. This script looks a bit like a single-file Flask application. Here is an example:

#!/usr/bin/env python3

from dish import Dish
dish = Dish()

# ansicolor color to be used in PS1 prompt
from dish.ext import ansicolor
dish.register_extension(ansicolor)

dish.config['PS1'] = '<color fg="pink">$</color> '

if __name__ == '__main__':
    dish.run()

Installation

To install the latest stable version:

$ pip3 install --user dish

To install the master branch:

$ git clone https://github.com/dullbananas/dish.git
$ cd dish
$ python3 setup.py install --user