Skip to content

Commit 406eacd

Browse files
committed
no commit message given
1 parent b9da106 commit 406eacd

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

plugins/copilot.sh

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ function _activate_copilot() {
33
local -n __error=$2
44
# running via gh(1)
55
# alias copilot="gh copilot"
6-
# without permission checking
7-
alias copilot="gh copilot --allow-all-tools"
6+
# without permission checking via gh(1)
7+
#alias copilot="gh copilot --allow-all-tools"
8+
# without permission checking via npm
9+
alias copilot="copilot --allow-all-tools"
810
__var=0
911
}
1012

@@ -14,9 +16,21 @@ function _install_copilot_npm() {
1416
after_strict
1517
}
1618

17-
function _install_copilt_gh() {
19+
function _uninstall_copilot_npm() {
1820
before_strict
19-
gh extension install github/gh-copilot
21+
npm uninstall -g "@github/copilot"
22+
after_strict
23+
}
24+
25+
function _install_copilot_gh() {
26+
before_strict
27+
gh extension install "github/gh-copilot"
28+
after_strict
29+
}
30+
31+
function _uninstall_copilot_gh() {
32+
before_strict
33+
gh extension remove copilot
2034
after_strict
2135
}
2236

0 commit comments

Comments
 (0)