This installs and configures common tools needed by a geek in his/her daily life.
The entry point is run.sh
.
Call the following function to install a Homebrew package:
brew_install <formula> <install_guard_path> <name>
where:
formula
is a Homebrew cask/formula nameinstall_guard_path
is the path to check if this package needs to be installedname
is the human readable package name
After installation the following script is being executed, if present:
./<formula>/setup.sh
Call the following function to run other custom scripts:
configure <target>
This will call the following script, if present:
./<target>/setup.sh
The secrets.sh
files are ignored in this repo. You can use these files to export
environment variables and to call
them from the other setup.sh
script files. For example, the git/secrets.sh
might contain:
export GIT_USER_NAME="Your Name"
export [email protected]
NOTE: The secrets.sh files don't need:
- to be executable, as they are called using
source
- the bash shebang, as they will be invoked in the context of the main script (i.e. Bash)
Feel free to make it more generic or pluggable. Otherwise fork it and have fun.