hub/etc/README.md

38 строки
852 B
Markdown
Исходник Обычный вид История

2015-07-17 06:49:11 +03:00
# Installation instructions
## bash + Homebrew
If you're using Homebrew, just run `brew install hub` and you should be all set with auto-completion.
## bash
Open your `.bashrc` file if you're on Linux, or your `.bash_profile` if you're on OS X and add:
```sh
if [ -f /path/to/hub.bash_completion ]; then
. /path/to/hub.bash_completion
fi
```
2015-07-17 06:49:11 +03:00
## zsh
Create a new folder for completions:
```sh
mkdir -p ~/.zsh/completions
```
Copy the file `/etc/hub.zsh_completion` from the location where you downloaded `hub` to the folder `~/.zsh/completions/` and rename it to `_hub`:
2015-07-17 06:49:11 +03:00
```sh
cp /path/to/etc/hub.zsh_completion ~/.zsh/completions/ \
mv ~/.zsh/completions/hub.zsh_completion ~/.zsh/completions/_hub
2015-07-17 06:49:11 +03:00
```
Then add the following lines to your `.zshrc` file:
2015-07-17 06:49:11 +03:00
```sh
fpath=(~/.zsh/completions $fpath)
autoload -U compinit && compinit
```