Skip to content

Commit 1b8ba1d

Browse files
committed
Document running as root with sudo
1 parent c7f74d9 commit 1b8ba1d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ Or
7373
wget -qO- https://gh.io/copilot-install | bash
7474
```
7575

76+
Use `| sudo bash` to run as root and install to `/usr/local/bin`.
77+
7678
Set `PREFIX` to install to `$PREFIX/bin/` directory. Defaults to `/usr/local`
7779
when run as root or `$HOME/.local` when run as a non-root user.
7880

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44
# GitHub Copilot CLI Installation Script
55
# Usage: curl -fsSL https://gh.io/copilot-install | bash
66
# or: wget -qO- https://gh.io/copilot-install | bash
7+
# Use | sudo bash to run as root and install to /usr/local/bin
78
# Export PREFIX to install to $PREFIX/bin/ directory (default: /usr/local for
89
# root, $HOME/.local for non-root), e.g., export PREFIX=$HOME/custom to install
910
# to $HOME/custom/bin

0 commit comments

Comments
 (0)