https://github.com/kakra/bash-additions
Some useful tools and snippets for my life with bash
https://github.com/kakra/bash-additions
Last synced: about 1 year ago
JSON representation
Some useful tools and snippets for my life with bash
- Host: GitHub
- URL: https://github.com/kakra/bash-additions
- Owner: kakra
- Created: 2010-10-13T01:09:31.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T21:11:26.000Z (about 9 years ago)
- Last Synced: 2025-01-31T07:22:48.315Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SUMMARY
=======
[](https://gitter.im/kakra/bash-additions?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
These are some bash tools I collected over time and which I use on different
computers. To ease sharing this on multiple computers I started publishing
this on [Github][] - thus sharing it with the public.
Please look at the source of each file for licensing information. If not noted
otherwise it is to be used as-is - no guaranties implied.
USAGE INSTRUCTIONS
==================
Usage instruction come in form of short examples. Please modify for your own
needs. It should be pretty straight forward.
prompt-hooks.sh
---------------
Add the following line to your local or system-wide `bashrc`:
source .../path/to/prompt-hooks.sh
Modify your `PS1` variable in the following or similar way - as it fits you:
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] $(_dir_chomp "$(pwd)" 20)\[\033[01;37m\]$(parse_git_branch)\[\033[01;34m\] \$\[\033[00m\] '
AUTHOR
======
Written and maintained by Kai Krakow ,
http://hurikhan77.wordpress.com/.
Feel free to contribute on [Github][].
[Github]: http://github.com/kakra/bash-additions "bash-additions on Github"