Welcome to the bashscripts repository! This project contains a collection of useful Bash scripts designed to automate and simplify various tasks.
This repository contains several Bash scripts located in the bin
folder. Each script is accompanied by its own documentation found in the docs
folder.
To get started, clone this repository to your local machine using Git:
git clone https://github.com/yourusername/bashscripts.git
cd bashscripts
To use the scripts from anywhere in your terminal, you need to add the bin
folder to your PATH. There are two ways to do this: locally (for a single user) or globally (for all users).
-
Open your
.bashrc
file in a text editor:nano ~/.bashrc
-
Add the following line to the end of the file:
export PATH="$HOME/bashscripts/bin:$PATH"
Replace
/bashscripts/bin
with the actual path to the cloned repository. -
Save and close the file.
-
Apply the changes:
source ~/.bashrc
-
Open the
/etc/profile
file in a text editor with superuser privileges:sudo nano /etc/profile
-
Add the following line to the end of the file:
export PATH="/path/to/bashscripts/bin:$PATH"
Replace
/path/to/bashscripts
with the actual path to the cloned repository. -
Save and close the file.
-
Apply the changes:
source /etc/profile
Here is a list of available scripts:
- getgit: lazygit-like tool to quickly navigate to a repo inside a pre-configured repo folder
- git_configure: script to configure global options like git aliases, credential manager, username and email. Forked from here
- setup_bashrc: script to set up various tools to bash, cs (cd + ls), ccat (cat with color) or reimplement evince to run in the background. Forked from here
For detailed documentation on each script, click the link or refer to the
docs
folder.
Each script has its own documentation located in the docs
folder. The documentation includes usage instructions, examples, and any additional information specific to the script.
Contributions are welcome! If you have a script you think would be useful, feel free to submit a pull request. Please ensure your script is well-documented and follows the existing structure of the repository.
This project is licensed under the MIT License. See the LICENSE file for details.