|
2 weeks ago | |
---|---|---|
.build.sh | 2 years ago | |
.coveralls.yml | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
compile_commands.json | 1 year ago | |
devilish.c | 2 years ago | |
devilish.c.gcov | 1 year ago | |
devilish.gcda | 1 year ago | |
devilish.gcno | 1 year ago | |
devilish.out | 1 year ago | |
junk | 1 year ago | |
junk2 | 1 year ago | |
makefile | 1 year ago | |
test.sh | 2 years ago |
This is a minimalistic shell. It comes from the depths of hell, and can do lots of cool things!
gcc :: for compiling the shell.
git :: for a quick git clone.
If you are running Windows, the above utilities will be packaged in any of the following: babun, cmder, or Linux Subsystem for Windows. Take your pick! : )
The above utilities should be installed (or readily available) if you are running a Unix derivative (such as Linux, macOS, or any of the BSD’s).
# clone the git repo
git clone https://github.com/lbeckman314/devilish
# enter directory
cd devilish
# inspect the makefile and main script
cat makefile
cat devilish.sh | less
# compile
make
# run the script
./devilish
rm -rfI devilish
You will be provided with a prompt (:), from which you can do all sorts of shell magic!
# First off, how to exit
: exit
# I can take comments and blank lines
# I can run commands in the background
sleep 100 &
background pid is 31415
# I know standard unix commands
ls
file 1
file 2
file 3
# Control-Z will run a foreground-only session
:^Z
Entering foreground-only mode (& is now ignored)
:^Z
Exiting foreground-only mode
# neato!