This repo is going to contain a set of scripts and functions to make life easier while using a bash shell during development.
Setup of the install scripts is pretty straight forward, you need to make sure that you have curl and git installed on your system and then you can run the following command:
curl -s https://raw.github.com/mlowen/dev_scripts/master/setup.sh | bash
This will clone the repository from https://github.com/mlowen/dev_scripts and setup your .bashrc to load the appropriate items you start a terminal. Once you have run the setup command you can either start a new terminal session or run
source ~/.bashrc to start using the functionality provided by the dev scripts.
When new functionality is added to the dev scripts it is just a simple matter of updating the the git repository that was created when the setup script was run, if the new functioality is in the form of a script in the bin directory then nothing more needs to be done if it is a new function then you will either need to start a new terminal session or run
- Display a summary of the Git repository you are currently in.
This environment is designed to be easily extendable, the structure of the environment are such that the
is added to the PATH for the user and the
functions directory are script files containing functions that are loaded
source when the terminal is loaded.
The easiest way to get something running is to add a script to the
bin folder, this will be available immediately due to
bin being on the path. If you are looking at adding a function to bash create a file with the
.sh extension that contains
the function and it will be loaded when you start the terminal.
This script collection is available under the MIT license which is as follows:
Copyright © 2014 Michael Lowen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.