Skip to main content

This script implement a Custom Shell.

Project description

CustomShell

Description

This script implement a Custom Shell.

Requirements

This package require :

  • python3
  • python3 Standard Library

Installation

pip install CustomShell

Launcher

  • Command line:
CustomShell
  • Python:
import CustomShell
shell()

Demo

Configuration

Default

  • Shell.ini for Linux (default configuration):
[DISPLAY]
prompt = {U}@{N}:{P}$
start_intro = echo '{color}{bgwhite}{color}{bold}{blue}'
end_intro = echo '{color}{reset}'
intro = {n}*** {T} - Welcome on CustomShell {U} ! ***{n}
start_quit = echo '{color}{bgwhite}{color}{underline}{red}'
end_quit = echo '{color}{reset}'
quit = {n}*** Bye {U} ! - {T} ***{n}

[ALIAS]
pyc  = python3 -c 
pym  = python3 -m 
  • Shell.ini for Windows (not default configuration):
[DISPLAY]
prompt = {U}@{N}:{P}$
start_intro = color a
end_intro = ""
intro = {n}*** {T} - Welcome on CustomShell {U} ! ***{n}
start_quit = color 4
end_quit = ""
quit = {n}*** Bye {U} ! - {T} ***{n}

[ALIAS]
pyc  = python -c 
pym  = python -m 

You can add/change alias, with this configuration you can write write pyc print('CustomShell') to execute python -c "print('CustomShell')".

Variables for configuration

{U} = username,
{N} = hostname,
{P} = current path,
{T} = time,
{p} = system (Windows, Linux...)
{s} = os name (nt, posix...)
{n} = new line (\n)

Unix Color

{black} {red} {green} {other} {blue} {purple} {cyan} {white} {bgblack} {bgred} {bggreen} {bgother} {bgblue} {bgpurple} {bgcyan} {bgwhite} {texte} {bold} {underline} {reset} {color}
  • To make a white background you can use: {color}{bgwhite}.
  • To make a blue bold text you can use: {color}{bold}{blue}.
  • To make a red undernline text you can use: {color}{underline}{red}.

Links

Github Page Documentation

Licence

Licensed under the GPL, version 3.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CustomShell-0.0.1.tar.gz (49.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page