This repository aims to provide multiple useful bash scripts.
- package-management
To be able to use the scripts, simply give execution permission to the setup script located in the scripts folder:
sudo chmod u+x setup.sh
Then run the script (see ./setup.sh --help
for more information about options):
./setup.sh
It will install the required packages, give all scripts execution permission, and finally create soft links in the specified target directory or in /usr/local/bin
, which is the default target directory.
NOTE: the specified target directory must be present in the path of your bash profile. You can check this by running echo $PATH
. If it is not present, you can add it by adding the following line to your bash profile:
export PATH="$PATH:/path/to/target-directory"
To execute a script foo.sh
, just type its name in the terminal (without the extension) following by its arguments if needed:
foo arg1 arg2 ...
To properly uninstall the scripts, simply run the clean script also located in the scripts folder:
./clean.sh
It will delete all the soft links and also remove the execution permission to all scripts. Note that it won't delete your personal files located in the target directory where the soft links were added!
If you've any improvement and/or tool suggestions, feel free to fork the project, implement your ideas following the conventions, and make a pull request in this repository.
All the scripts must follow the Google Shell Style Guide conventions. Optionally, the ShellCheck tool can be used to detect potential errors or warnings in the scripts.