Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DexterLagan/lsh
A fully-featured lisp/scheme shell written in Racket.
https://github.com/DexterLagan/lsh
Last synced: 2 months ago
JSON representation
A fully-featured lisp/scheme shell written in Racket.
- Host: GitHub
- URL: https://github.com/DexterLagan/lsh
- Owner: DexterLagan
- License: mit
- Created: 2018-04-18T14:23:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-21T08:33:13.000Z (over 3 years ago)
- Last Synced: 2024-08-03T01:38:39.380Z (6 months ago)
- Language: Racket
- Homepage:
- Size: 16.6 KB
- Stars: 122
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-racket-and-scheme - lsh - featured lisp/scheme shell written in Racket (Racket / Tools/lib)
README
# lsh
Lisp ShellThis is a cross-platform shell developed in Racket. To use, either compile to binary using Racket 6.11 or newer, or run:
Windows:
"C:\Program Files\Racket\racket.exe" -f "lsh.rkt" -e "(require 'lsh)" -iUnix:
racket -f "lsh.rkt" -e "(require 'lsh)" -iAvailable commands:
help ; displays this message
cd ; displays the current working directory or change it
cd/ ; same as (cd "/") - goes back to filesystem root
pwd ; print the current directory's path
dir ; list the current directory's file list or the specified path
ls ; prints the current folder's file list
mkdir ; makes a folder
run ; run a program from the current directory, optionally takes parameters
run# ; run a program directly using its path
racket ; edit a file using DrRacket
edit ; edit a file using notepad
edit-me ; edit lsh source file using DrRacket
url ; browse to an url
google ; google an url
cp ; copy a file or folder
mkdir ; create a folder
touch ; create an empty file
find ; walk the current path
show ; pretty-prints a command result
rm ; delete a file
rmdir ; delete a folder
echo ; display something on the screen
search ; equivalent to Google's 'I'm feeling lucky'LSH evaluates Scheme and Racket forms from the command line. Remember to (display ) forms if you need to output results to the screen.
This is still very Alpha, but I use it all the time, so you might as well have it too. I use it in Windows, but it should work out of the box on Linux, BSD and MacOS - and if not, would require minor changes.## License
LSH is free software; see [LICENSE](https://github.com/DexterLagan/lsh/blob/main/LICENSE) for more details.