7 Commits

Author SHA1 Message Date
Motonobu Kuryu
da8d3ecb1e Fix install script
use `cd -` on returning.
2017-02-01 17:05:17 +09:00
Lucas Possatti
a23a8c3d52 Create a 'pokemonthink' script
A 'pokemonthink.sh' was created in the repository. And the install
script creates a 'pokemonthink' script in the bin folder.

The 'pokemonthink' script calls pokemonsay, but using the --think
option... That's all!
2015-06-23 16:35:08 -03:00
Lucas Possatti
da15ecfcb7 Add a variety of options to the main script
The options added are:
 -p, --pokemon POKEMON_NAME
 -f, --file COW_FILE
 -n, --no-name
 -h, --help
2015-06-14 02:39:45 -03:00
Lucas Possatti
e368c28532 Embed the uninstall script inside the install script
A heredoc was used in the install script to generate the uninstall
script. This was made because they share important variables, like
'$install_path'.

If someone, for example, changes the '$install_path' in the install
script, but not in the uninstall script. The latter would be brokken.
So I think this was the safest way to keep things right, even if
changes are made.
2015-06-11 15:03:00 -03:00
Lucas Possatti
62b07d0892 Change the install path
Before this, the instalation path was '~/.config/pokemonsay', but I
don't think it was the best place to install, since there should be
only configuration files in there.

The new install path is '~/.pokemonsay/' which seems like a better
aproach.
2015-06-11 14:22:44 -03:00
Lucas Possatti
a997e6100c Copy the uninstall script to the install directory too
Now the install script will also copy the uninstall script to the
install path, along with the other files.
2015-06-11 01:02:11 -03:00
Lucas Possatti
c0c02be049 Create a install script
In order to use 'pokemonsay', I need it installed somewhere. I think
a simple script is enough for that.

The install script copies the essential files to the '.config' folder
in 'home', and creates a script in the '~/bin' directory that will
run 'pokemonsay'.

I wonder if it could have been done in any better way.
2015-06-11 00:17:47 -03:00