I provide 3 different ways to install this script:
-
Download
install.shscript from the repo usingwgetorcurl(we usewgetin this example)wget https://raw.githubusercontent.com/p4nchit0z/PokeASCIILogin/main/install.sh -O install.sh -
Execute the script
bash install.sh
P.S.: you might need to provide permissions with
chmod +x install.shcommandThis will do the following:
- Clone the repo (create a folder and download all needed files within it)
- (Optional) Check if files have been downloaded properly (search for 'Uncomment' commentary in
install.sh) - Add the executable to your resource
.rcfile if you are using Bash or Zsh shell. If you use a different shell you will have to add the executable manually to your equivalent of resource.rcfile (.bashrcin Bash,.zshrcin Zsh) of your shell (see step 2 in 'Manual Installation')
-
(Optional) You might need to give some permissions to the executable with:
chmod +x /abs/path/to/PokeASCII/executable -
Restart your terminal, or run:
source YOUR_RESOURCE_FILE_HEREwhere
YOUR_RESOURCE_FILE_HEREis.zshrcfor Zsh and.bashrcfor Bash shell.
-
Clone the repo
git clone github.com/p4nchit0z/PokeASCIILogin -
Add the cloned executable to your resource
.rcfile (.bashrcfor Bash shell,.zshrcfor ZSH shell and so on...)echo "/abs/path/to/PokeASCII/executable" >> $HOME/"YOUR_RC_FILE_HERE"for example, if your user is
MyUsernameand you useZSHshell:echo "/home/MyUsername/PokeASCIILogin/PokeASCIILogin" >> $HOME/.zshrcwhere
"/home/MyUsername/PokeASCIILogin/PokeASCIILogin"is the absolute path to PokeASCIILogin executable. -
(Optional) You might need to give some permissions to the executable with:
chmod +x /abs/path/to/PokeASCII/executable -
Restart your terminal, or run:
source YOUR_RESOURCE_FILE_HEREwhere in my example this is:
source $HOME/.zshrc
- Clone the repository
git clone github.com/p4nchit0z/PokeASCIILogin - Build the executable
cd PokeASCIILogin go build -o PokeASCIILogin - Add executable to your .rc file as explained in previous installations