Skip to content

AzFoxxo/AzzyShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AzzyShell

AzzyShell is a lightweight shell environment written in C#.

Note: The shell doesn't parse input into tokens and only does the absolute basics to interpret commands.

AzzyShell running in Konsole

Supported commands

  • quit - Quit the app
  • help - Show this help message
  • ls - List all files and directories in the current directory
  • pwd - Print the current directory
  • clear - Clear the console
  • cd - Change the current directory
  • touch - Update timetamp of a file or create a new file
  • mkdir - Create a new directory
  • remove - Remove a file or directory
  • cat - Print the contents of a file
  • log - Log a message to the console
  • fizzbuzz - Print the FizzBuzz sequence up to a given number
  • set - Set a variable
  • vars - List all variables
  • logo - Print the Azzy logo
  • hacker - Print 0 and 1 in a hacker style
  • gaytext - Print a message in gay colours
  • history - Print the command history
  • run - Run a AzzyShell Script file line-by-line
  • alias - Create/update and view aliases

AzzyShell Script

AzzyShell uses AzzyShell Script (ASS) for scripts.

Examples can be found in the scripts/ directory.

Configuration

If a file called ~/.azzyshell_init.ass is present, the shell will skip the usual init and run the custom one.

Variables

Additionally, the shell supports multiple commands using && and defining and using variables. Using [variable] will return that variable's type. Using {variable} will return it's value. Using (variable) will return the name of the variable. Using <variable> will return the index of the variable.

Special characters

  • @DOUBLE@ for "
  • @AND@ for &&
  • @NEWLINE@ for \n (newline)
  • @TAB@ for \t (tab)
  • @AT@ for @
  • @HASH@ for #

External commands

If a command is not found, it will search the path for the executable.

Comments

Comments can be created by using # and anything following it will be skipped until a newline.

About

AzzyShell is a simple shell written in C# and the Heroes framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages