Skip to content

danships/bash_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

This is a collection of useful bash scripts.

Installation

First, clone this repository inside your home directory (~/bash_scripts). Then, place the lines below inside your .bashrc file.

It will recursively read all scripts inside your bash_scripts folder and run them.

# Automatically execute scripts in bash_scripts directory and subdirectories
find ~/bash_scripts -type f -name '*.sh' -exec chmod +x {} +  # Ensure all .sh files are executable
while IFS= read -r script; do
    if [ -x "$script" ]; then
        . "$script"
    fi
done < <(find ~/bash_scripts -type f -name '*.sh')

About

This is a collection of useful bash scripts to use in .bashrc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages