зеркало из https://github.com/mislav/hub.git
Add chocolatey and powershell instructions.
This commit is contained in:
Родитель
c30065a606
Коммит
3d84dad214
37
README.md
37
README.md
|
@ -30,7 +30,18 @@ Dependencies:
|
|||
$ brew install hub
|
||||
$ hub version
|
||||
git version 1.7.6
|
||||
hub version 2.2.0
|
||||
hub version 2.2.3
|
||||
```
|
||||
|
||||
#### Chocolatey
|
||||
|
||||
`hub` can be installed through [Chocolatey](https://chocolatey.org/) on Windows.
|
||||
|
||||
``` sh
|
||||
> choco install hub
|
||||
> hub version
|
||||
git version 2.7.1.windows.2
|
||||
hub version 2.2.3
|
||||
```
|
||||
|
||||
#### Standalone
|
||||
|
@ -87,6 +98,30 @@ You should place this command in your `.bash_profile` or other startup script:
|
|||
eval "$(hub alias -s)"
|
||||
```
|
||||
|
||||
#### PowerShell
|
||||
|
||||
If you're using PowerShell, you can set an alias for `hub` by placing the
|
||||
following in your PowerShell profile (usually
|
||||
`~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1`):
|
||||
|
||||
``` sh
|
||||
Set-Alias git hub
|
||||
```
|
||||
|
||||
A simple way to do this is to run the following from the PowerShell prompt:
|
||||
|
||||
``` sh
|
||||
Add-Content $PROFILE "`nSet-Alias git hub"
|
||||
```
|
||||
|
||||
Note: You'll need to restart your PowerShell console in order for the changes to be picked up.
|
||||
|
||||
If your PowerShell profile doesn't exist, you can create it by running the following:
|
||||
|
||||
``` sh
|
||||
New-Item -Type file -Force $PROFILE
|
||||
```
|
||||
|
||||
### Shell tab-completion
|
||||
|
||||
hub repository contains tab-completion scripts for bash and zsh. These scripts
|
||||
|
|
Загрузка…
Ссылка в новой задаче