2011-01-09 15:03:49 -05:00
|
|
|
git-shortmaps provides very concise (one- or two-character), user-configurable
|
|
|
|
commands for Git with support for Bash tab completion.
|
|
|
|
|
|
|
|
# shortmaps / Bash Completion
|
|
|
|
The `bash_completion` file contains Bash completion for custom commands and
|
|
|
|
"shortmappings", which provide single-character aliases to common Git commands.
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
Source the `bash_completion` file (e.g. place in `.bashrc` or in
|
|
|
|
`/etc/bash_completion.d/` on Debian systems), with the path to the provided
|
2013-12-08 13:41:59 -05:00
|
|
|
`shortmaps` file as the only argument:
|
2011-01-09 15:03:49 -05:00
|
|
|
|
|
|
|
```
|
2013-12-08 13:41:59 -05:00
|
|
|
$ . bash_completion ./shortmaps
|
2011-01-09 15:03:49 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
You may also add your own mappings to `~/.git-shortmaps`.
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
The file format is as follows:
|
|
|
|
|
|
|
|
```
|
|
|
|
KEY COMPLETION :CMD
|
|
|
|
KEY COMPLETION CMD
|
|
|
|
```
|
|
|
|
|
|
|
|
If `CMD` contains a `:` prefix, the command will be prefixed with `git`.
|