/bash-config

Rich Wareham's bash configuration

Primary LanguageShell

Bash configuration

This is Rich Wareham's personal bash configuration directory. It's probably only of use to him but if you want to use it, it can be installed in the following way:

$ git clone https://github.com/rjw57/bash-config/ ~/.bash.d
$ cat >>~/.bashrc <<EOF
if [ -d ~/.bash.d ]; then
  for i in ~/.bash.d/*.sh; do
    if [ -r \$i ]; then
      . \$i
    fi
  done
  unset i
fi
EOF
$ cat >>~/.bash_profile <<EOF
. ~/.bashrc
EOF

Conventions

As far as possible scripts should try to clear up after themselves with add_clearup_function. Some pollution is unavoidable, for example the prompt manipulation stuff, and in those cases try to prefix variables and functions which remain after sourcing with _.

License

Unless otherwise stated, this code is Copyright © 2013 Rich Wareham.

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.