Compare commits

..

No commits in common. "master" and "Oink" have entirely different histories.
master ... Oink

3 changed files with 4 additions and 36 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
dist/

View File

@ -1,6 +1,6 @@
# Oink # Oink
[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! [Cowsay](https://github.com/piuccio/cowsay), except it's 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,35 +16,11 @@ fooboar@forest:~$ oink Ich bin ein WIldschwAIn!
fooboar@forest:~$ fooboar@forest:~$
``` ```
## 🌲 Usage (Ubuntu) ## Usage
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,13 +1,6 @@
#!/bin/bash #!/bin/bash
if [ $# -eq 0 ] cowsay "$@" | head -n -5
then
args="Howdy! Ich bin Fooboar, das WIldschwAIn!"
else
args=$@
fi
cowsay "$args" | head -n -5
tee <<- EOM tee <<- EOM
| Λ––Λ | Λ––Λ
| /_ _\\ | /_ _\\