Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.52 KB

File metadata and controls

47 lines (35 loc) · 1.52 KB

GitHub CLI

First attempted to build from source but it wouldn't recognize the binary.

go version
git clone https://github.com/cli/cli.git gh-cli
cd gh-cli
make

I didn't have make installed so I used scoop to install it.

scoop search make
scoop install make
Get-Command make

Still no dice. But since I now had Scoop, I just used it to install gh-cli. Also included confcfg for console settings and pshazz for a nice Git prompt.

scoop bucket add github-gh https://github.com/cli/scoop-gh.git
scoop install gh
scoop install concfg
scoop install pshazz

A side effect of installing pshazz is that I now get a message about the SSH agent being disabled.

SSH Agent Disabled

Since I already use SSH Agent from GitHub for Windows, I can live with it being disabled.

call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd" /k exit
:: call "C:\Program Files\OpenSSH\ssh-agent.exe"
call "%GIT_INSTALL_ROOT%/usr/bin/ssh-add" %HOME%/.ssh/id_rsa

References

  1. GitHub’s official command line tool
  2. Import / export Windows console settings
  3. Give your powershell some pizazz
  4. A PowerShell environment for Git
  5. unable to start ssh-agent service, error :1058