cybardev / cutefetch

Tiny coloured fetch script with cute little animals
https://cutefetch.cybar.dev
GNU General Public License v3.0
47 stars 4 forks source link

[feat] single line bash command for installation #13

Open Losty17 opened 3 months ago

Losty17 commented 3 months ago

Description

In the purpose of easing the process of installation, I have made a single line bash script to download the script, place it in a file and add it to PATH. I offer myself to update the README.md if necessary.

Changes Requested

Resources

mkdir -p ~/.config/cutefetch && \
curl https://raw.githubusercontent.com/cybardev/cutefetch/main/cutefetch > ~/.config/cutefetch/cutefetch && \
chmod a+x ~/.config/cutefetch/cutefetch && \
echo "\nexport PATH=\$HOME/.config/cutefetch:\$PATH" >> .zshrc && \
echo "\nexport PATH=\$HOME/.config/cutefetch:\$PATH" >> .bashrc
cybardev commented 3 months ago

Hi.

An install script could be a nice addition, but I'd like to change some things:

I propose appending the following to the Install section:


Commands to install cutefetch

mkdir -p ~/.local/lib
mkdir -p ~/.local/bin
git clone https://github.com/cybardev/cutefetch ~/.local/lib/cutefetch
chmod a+x ~/.local/lib/cutefetch/cutefetch
ln -s $HOME/.local/lib/cutefetch/cutefetch $HOME/.local/bin/cutefetch

PS1: after running the above commands, make sure to add the bin directory to path or add an alias to cutefetch so it can be run from the terminal. Put one of these in your shell script config file (.bashrc, .zshrc, etc.):

PS2: On many distros, the local bin directory is already added to PATH. After running the installation commands, check if you can run cutefetch already (in a new terminal, not the current one). If you can, then you don't need to do anything else.


You can add the changes and make a PR. I'll check it when I can get to it. Thanks. :blush: