GithubHelp home page GithubHelp logo

grove-shell's Introduction

Grove shell

A simple Linux shell written in Go.

Important

Grove is still in the early stages of (active) development. Currently, it only works on Linux systems (using it on any others will result in unexpected behaviour or even refuse to launch).

Installation

  • The easiest way to install Grove at the moment is using the script below. It simply builds the program (this requires you to have the Go compiler installed) and stores it in /usr/local/bin/grove.
git clone https://github.com/mattishere/grove-shell && cd grove-shell && make install

Afterwards, you can also use make register, which registers the shell in the /etc/shells file, allowing you to set it as your default shell.

  • Another way to install Grove is by installing a binary from here. At the moment, they're only for amd64 Linux systems.

Usage

  • After installing Grove, you can start a session/REPL with the command grove.

Features

  • Commands (use help to see them, their usage and their syntax)
  • String expansion of environment variables ($VARIABLE -> value)
  • Home directory expansion (~ -> /home/user)
  • Strings ('raw string', "normal string")
  • Scripts and a launch script (~/.groverc)
  • Shebang exectuable scripts (#!/path/to/your/grove/binary, and then ./your/executable/script)
  • Prompt customization by setting the $PROFILE environment variable, with placeholders:
Placeholder Description
{username} Gets the current username of the user
{hostname} Gets the hostname of the machine
{path} Gets the current full path
{curr_dir} Gets the current directory that you are in (without the full path)
{reset|bold|underline} Different styling options
{black|red|green|yellow|blue|magenta|cyan|white} Different color options

grove-shell's People

Contributors

mattishere avatar

Stargazers

rei 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.