ao-mud is a spellbook of well-commented atomic bash scripts that each do one thing. we are building semantic building blocks for an autonomously-evolving digital spellcasting language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

#!/bin/sh
# To make this script executable, use the command: chmod +x 00_terminal.sh
# To run the script, use the command: ./00_terminal.sh
echo "Welcome, neophyte, to the AO-MUD POSIX-compliant bash tutorial series!"
echo "This spell will teach you some basic terminal tricks and keyboard shortcuts"
echo "To study the code of the examples, please use the command: cat 23_terminal.sh"
# Pressing up to get the last run command
echo "To get the last run command, press the up arrow key"
# Ctrl-R to search for commands
echo "To search for a command in your command history, press Ctrl-R and type in a search term"
# Entering multi-line input before running a command
echo "To enter multi-line input before running a command, press Ctrl-X followed by Ctrl-E"
# Moving the cursor around on the line
echo "To move the cursor around on the line, use the left and right arrow keys"
# Copying and pasting
echo "To copy, use Ctrl-Shift-C. To paste, use Ctrl-Shift-V"
#Clearing the terminal
echo "To clear the terminal, press Ctrl + L"
#Going to the beginning/end of a line
echo "Press Home or End to move to the beginning or end of a line respectively"
echo "Cast spell finished, check the code of the spell by using 'cat 23_terminal.sh' command"
# Use !! to repeat the last command
echo "To repeat the last command, use the command: !!"
echo "For example, to repeat the last command with 'sudo', use: sudo !!"
echo "Spell cast successfully!"