In the terminal:
$ git clone https://github.com/Buct0r/cls.git && cd cls
then:
$ chmod +x cls && cp cls /usr/local/bin
If it gives you an error like this:
cp: cannot create regular file '/usr/local/bin/cls': Permission denied
Just run the previous command with sudo:
$ sudo cp cls /usr/local/bin
In alternative you can clone the repo and add the directory to path
$ git clone https://github.com/Buct0r/cls.git && cd cls
make it executable:
$ chmod +x cls
Edit your shell profile, depending on your system and shell:
$ vim ~/.bashrc
Add this line to the end of the file:
export PATH=$PATH:~/cls
And then source the file
$ source ~/.bashrc
In your terminal type:
wget https://raw.githubusercontent.com/Buct0r/cls/main/cls
then:
chmod +x cls
Follow the previous steps to add the executable to your path variable
Download the source code and use the same commands as above.
If you decide to use the cls command, consider adding a star to the repo💫. I made this project mainly for fun and also because I'm pretty lazy and I prefferd to type less to clear the terminal output😓
Developed by Buct0r❤️