Commit d4ac1486 authored by Chris Bills's avatar Chris Bills

Add usage info for bash stuff

parent f967538a
......@@ -165,10 +165,28 @@ git push xgitlab --tags # Push any local tags to GitLab (optional)
A file that contains some example functions that can be helpful when working with git.
Copy the contents of `bash-functions` into `~/.bashrc` or copy the file somewhere in your home directory and add something like the following to `~/.bashrc`:
```
if [[ -e "$HOME/.bash_functions" ]]; then
source "$HOME/.bash_functions"
fi
```
1. `gits [#]` - a function that displays a brief summary of changes and the previous 5 log messages and hash commits. If an optional number is provided, it will display that many log messages.
### bash-git_prompt
Copy the contents of `bash-git_prompt` into `~/.bashrc` or copy the file somewhere in your home directory and add something like the following to `~/.bashrc`:
```
if [[ -e "$HOME/.bash_git_prompt" ]]; then
source "$HOME/.bash_git_prompt"
fi
```
**Note:** If you are using `$PROMPT_COMMAND` in your `~/.bashrc` already, you will need to take some care and adjust the contents of `bash-git_prompt`
An example addition to the bash prompt that will show you which branch you currently have checked out, and what its status is.
#### Symbol meanings:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment