Compare commits

...

6 Commits
Oink ... master

Author SHA1 Message Date
9090dcd316 Add cowsay as a dependency 2018-07-16 12:37:44 +02:00
5d17736a9f Add .gitignore 2018-07-15 22:18:28 +02:00
e7965a5240 Add Fooboar's greeting 2018-07-15 22:15:19 +02:00
d8aa83f00e Add detailed installation instruction 2018-07-14 10:14:42 +02:00
2361a0a983 Move boar emoji 2018-07-14 09:58:24 +02:00
c2bde4a088 Add contributors 2018-07-14 09:56:47 +02:00
3 changed files with 36 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/

View File

@ -1,6 +1,6 @@
# Oink # Oink
[Cowsay](https://github.com/piuccio/cowsay), except it's Fooboar talking. You want to teach him new skills? Pull requests welcome! [Cowsay](https://github.com/piuccio/cowsay), except it's 🐗 [Fooboar](https://wiki.wiai.de/index.php/Fooboar) talking. You want to teach him new skills? Pull requests welcome!
```console ```console
fooboar@forest:~$ oink Ich bin ein WIldschwAIn! fooboar@forest:~$ oink Ich bin ein WIldschwAIn!
@ -16,11 +16,35 @@ fooboar@forest:~$ oink Ich bin ein WIldschwAIn!
fooboar@forest:~$ fooboar@forest:~$
``` ```
## Usage ## 🌲 Usage (Ubuntu)
This script requires [Cowsay](https://github.com/piuccio/cowsay). Download and install it first. Then you are ready to download the newest [oink release](https://git.wiai.de/fknoch/oink/releases). Run the following line to make the script executable:
```sh ```sh
$ chmod +x "/path/to/oink.sh" $ chmod +x "/path/to/oink.sh"
$ alias oink="/path/to/oink.sh" ```
Add these lines at the end of your `~\.bashrc`.
```bash
# Fooboar
alias oink="/path/to/oink.sh"
```
To persist your changes, run:
```bash
$ . ~/.bashrc
```
Now Fooboar can talk to you.
```bash
$ oink Heyho! $ oink Heyho!
``` ```
## 🍄 Contributors
Truffels go to:
* [Christian](https://wiki.wiai.de/index.php/Benutzer:Ckremitzl), who provided the wonderful Unicode representation of Fooboar
* [Fabian](https://wiki.wiai.de/index.php/Benutzer:Flamprecht), who suggested to use a `.cow` file (which has been rejected after some discussion)

View File

@ -1,6 +1,13 @@
#!/bin/bash #!/bin/bash
cowsay "$@" | head -n -5 if [ $# -eq 0 ]
then
args="Howdy! Ich bin Fooboar, das WIldschwAIn!"
else
args=$@
fi
cowsay "$args" | head -n -5
tee <<- EOM tee <<- EOM
| Λ––Λ | Λ––Λ
| /_ _\\ | /_ _\\