Giter Club home page Giter Club logo

leoxia.shell's Introduction

Leoxia.Shell

Cross platform command interpreter. Written in C#/.NET Core. Primarily intended to work on Windows. Not tested on Linux/Mac but should work as well.

Navigation on command Line

  • Use Ctrl+A, Home, Ctrl+E, End, Left Arrow, Right Arrow to navigate
  • Ctrl+K, Backspace to delete characters.

History

  • Can access history of commands with up arrow, down arrow, Ctrl+P, Ctrl+N.
  • Can modify current command or history without losing current command.

Run executables in $PATH / %PATH%

  • Search in path for the exe (add .exe on Windows).

Capture Standard Output / Standard error

  • Standard output/error is captured from child process and displayed in console.

Environment Variables Expansion

Expand ${VARIABLE} $VARIABLE %VARIABLE%

Builtins

The following builtins are already implemented

  • echo
  • cd
  • mkdir
  • ls (options -l, -a, --color)
  • exit

Alias management

  • aliases are saved and loaded in <directory_of_assembly>/.lxaliases
  • aliases are expanded on the commandline

TODO

  • History save between runs
  • History search
  • Completion
  • Standard Input redirection
  • Redirection operators < | >
  • Prompt customization

Development

In order to compile the projects, you'll need the following

Contribution

Any contribution is welcome. Please Read Contributing

leoxia.shell's People

Contributors

stormleoxia avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

leoxia.shell's Issues

which

Iimplement which command

Sudo

Implement sudo builtin as sudo on Unix and runas on Windows.

Globing

Add management for * and ?

History Saving

History should be saved between runs like in .lxhistory

Builtin alias/unalias

Register new alias:

alias alias_name='alias_command' 

Unregister alias:

unalias alias_name

Save loaded aliases to .lxaliases file.

alias -s

Load aliases from the .lxaliases file.

alias -l

Completion

Command completion
Directory completion
File completion

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.