https://github.com/zesterer/tosh
TOSH - A lightweight, simple shell for Thoth
https://github.com/zesterer/tosh
Last synced: 10 months ago
JSON representation
TOSH - A lightweight, simple shell for Thoth
- Host: GitHub
- URL: https://github.com/zesterer/tosh
- Owner: zesterer
- Created: 2016-04-14T22:50:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-15T14:20:10.000Z (over 9 years ago)
- Last Synced: 2025-01-25T18:31:10.368Z (12 months ago)
- Language: C
- Size: 119 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tosh
Tosh (Terribly Ordinary SHell) is a shell designed to operate on POSIX systems. It is simple and lightweight, providing few features beyond the basic functionality you would expect from a shell.

## Getting a copy
```
git clone https://www.github.com/zesterer/tosh.git
```
## Building
```
cd tosh
./setup.sh
tup build-default
```
## Running
```
./build-default/tosh
```
## Example
```
Welcome to TOSH!
10:52:41
joshua@/home/joshua/Documents/Projects/tosh$ echo "TOSH supports basic expression expansion!"
TOSH supports basic expression expansion!
10:52:56
joshua@/home/joshua/Documents/Projects/tosh$ echo "{tput setaf 6}Here's how!"
Here's how!
10:53:17
joshua@/home/joshua/Documents/Projects/tosh$
```
## Syntax
```
# Double quotes are counted as a string
echo "Hello, there!"
# Brackets are evaluated as a command expansion, unless prefixed by a '\'
echo "My name is {whoami}, not \{whoami\}"
```