Git Product home page Git Product logo

uselessshell's Introduction

Ush(Useless Shell)

It is useless because it has only 6 commands, can not modify files and directories, and can not even run .sh files!
ush will be deactivated and discontinued after it is open sourced, but you can still use it for free and quickly, as it is still a good computer shell, but we cannot guarantee its security.
ush has the following issues when writing, but it doesn't affect everyday use, so we'll ignore it:

  1. When you use the cd command, you will not be able to jump to multiple directories at once
  2. When you run multiple instructions at once, the output may be confusing, but it is still readable
  • We will always look forward to your fixing this issue
  • But please don't add new directives to keep it safe and portable!

You can build as an executable by running ./install.sh in the directory of this project, and if that fails, install a C/C++ compiler like G++

Beautification:
Although ush does not have a configuration file, you can still configure it by modifying the source code
You can modify the following sections:

void config() //config (beautification)
{
	/*---------------------------
		user("name"): user name
		cname() computer name
		user("dir"): user dir
	---------------------------*/
	cout << user("name") << "@" << cname() << ":";
	if (path == user("dir")) cout << "~";
	else if (path == "/") cout << "/";
	else cout << path;
	if (user("name") == "root") cout << "#";
	else cout << "$";
	}

The default output here is

runner:docs$

Themes:
robbyrussel

> docs
void config() //config (beautification)
{
	/*---------------------------
		user("name"): user name
		cname() computer name
		user("dir"): user dir
	---------------------------*/
	cout << "> ";
	if (path == user("dir")) cout << "~";
	else if (path == "/") cout << "/";
	else cout << path;
	}

ys

# runner in docs
$
void config() //config (beautification)
{
	/*---------------------------
		user("name"): user name
		cname() computer name
		user("dir"): user dir
	---------------------------*/
	cout  << "#" << user("name") << "@" << cname() << " in ";
	if (path == user("dir")) cout << "~";
	else if (path == "/") cout << "/";
	else cout << path;
	cout << endl << "$";
	}

uselessshell's People

Contributors

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