Skip to content

Commit

Permalink
Fix some issues and commit to CoconutDev
Browse files Browse the repository at this point in the history
  • Loading branch information
datkat21 committed Nov 13, 2020
1 parent 5e710b1 commit 67fb526
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
8 changes: 6 additions & 2 deletions mini.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#Setup the functions
toilet "MiniShell" -f mini --metal
echo -e "\e[1;34mMiniShell \e[1;35m1.0 \e[0;0mby Kat21. Type \e[1;36m'help' \e[0;0mfor commands."
echo -e "\e[1;34mMiniShell \e[1;35m1.0 \e[0;0mby CoconutDev. Type \e[1;36mhelp \e[0;0mfor commands."
function jumpto() {
label=$1
cmd=$(sed -n "/$label:/{:a;n;p;ba};" $0 | grep -v ':$')
Expand All @@ -15,6 +15,10 @@ command -v toilet
if [ "$?" == "1" ]; then
echo "Toilet not found. Please install it!"
fi
command -v figlet
if [ "$?" == "1" ]; then
echo "Figlet not found. Please install it!"
fi

jumpto $start

Expand Down Expand Up @@ -60,5 +64,5 @@ fi

welcome:
toilet "MiniShell" -f mini --metal
echo -e "\e[1;34mMiniShell \e[1;35m1.0 \e[0;0mby Kat21. Type \e[1;36m'help' \e[0;0mfor commands."
echo -e "\e[1;34mMiniShell \e[1;35m1.0 \e[0;0mby CoconutDev. Type \e[1;36mhelp \e[0;0mfor commands."
jumpto start
32 changes: 22 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
![MiniShell logo](./logo.svg)
--
# ![MiniShell logo](./logo.svg)

![GitHub last commit](https://img.shields.io/github/last-commit/datkat21/minishell?style=flat-square)

![GitHub Release Date](https://img.shields.io/github/release-date/datkat21/minishell?style=flat-square)

MiniShell is a small "shell" made in Bash for fun.
It takes use input and outputs something.
Type "help" for some commands.
<hr />
You can type `help` for some commands.

Setting up
--
## Setting up

Clone the repository, you need `git` .
`` `git clone https://github.com/datkat21/minishell` ``
<hr>
[License](./LICENSE) | [Creator](https://github.com/datkat21)

```git clone https://github.com/datkat21/minishell```

Next, run the script.

```bash minishell/mini.sh```

## Troubleshooting

`toilet` and `figlet` are required to display the welcome splash.

![Discord](https://img.shields.io/discord/507735969731182592?style=flat-square)

![GitHub release (latest by date)](https://img.shields.io/github/v/release/datkat21/minishell?style=flat-square)

0 comments on commit 67fb526

Please sign in to comment.