-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from atomiyama/misc/modify_installation
ADD installation from source section to README.
- Loading branch information
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Installation from source | ||
|
||
1. Clone cli into `~/.githubcli` | ||
``` | ||
$ git clone https://github.com/cli/cli.git ~/.githubcli | ||
``` | ||
|
||
2. Compile | ||
``` | ||
$ cd ~/.githubcli && make | ||
``` | ||
|
||
3. Add `~/.githubcli/bin` to your $PATH for access to the gh command-line utility. | ||
|
||
* For **bash**: | ||
~~~ bash | ||
$ echo 'export PATH="$HOME/.githubcli/bin:$PATH"' >> ~/.bash_profile | ||
~~~ | ||
|
||
* For **Zsh**: | ||
~~~ zsh | ||
$ echo 'export PATH="$HOME/.githubcli/bin:$PATH"' >> ~/.zshrc | ||
~~~ | ||
|
||
* For **Fish shell**: | ||
~~~ fish | ||
$ set -Ux fish_user_paths $HOME/.githubcli/bin $fish_user_paths | ||
~~~ | ||
|
||
4. Restart your shell so that PATH changes take effect. | ||
|