A set of scripts to provide easily customisable utilities to bash.
Clone or download
mlowen Updated the git branch retrieval logic.
With the new version of ubuntu the method that is used to retrieve
what branch the repo is currently on would also pull out the remote
branch that is being tracked as well.
Latest commit 5d9d188 Apr 23, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Added bin dir Feb 2, 2014
functions Updated the git branch retrieval logic. Apr 23, 2014
.gitignore Started counting staged files. Feb 4, 2014
LICENSE.txt Added a license. Feb 2, 2014
README.md Update README.md Feb 7, 2014
bashrc_template Finished setup script. Feb 2, 2014
setup.sh Updated the setup script. Feb 7, 2014

README.md

Developer Scripts

This repo is going to contain a set of scripts and functions to make life easier while using a bash shell during development.

Setup

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.

Updating

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 source ~/.bashrc.

Current functionality

  • Display a summary of the Git repository you are currently in.

Adding stuff

This environment is designed to be easily extendable, the structure of the environment are such that the bin directory is added to the PATH for the user and the functions directory are script files containing functions that are loaded using 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.

License

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.