Skip to content

Commit ff6568c

Browse files
authored
Merge pull request #9 from buffalom/feature/stable-github-cli
Use Stable GitHub CLI Through Brew
2 parents 25a8f7b + eba57de commit ff6568c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Brewfile

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ brew 'git'
4949
brew 'git-delta' # Git diff viewer
5050
brew 'lazygit'
5151
brew 'pre-commit' # Git hooks
52+
brew 'gh' # GitHub CLI
5253
brew 'sops'
5354
brew 'age'
5455
brew 'ngrok'

run_once_before_install-packages-darwin.sh.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ if [ ! -d "$NVM_DIR" ]; then
7878
nvm alias default 18
7979
fi
8080

81-
echo 'Install npm packages'
82-
echo '------------'
83-
npm install -g @githubnext/github-copilot-cli
84-
8581
# echo 'Install php environment'
8682
# echo '---------------------------'
8783
# sh "$(chezmoi source-path)/install/php-env.sh"
8884

85+
echo 'Install gh extensions'
86+
echo '---------------------------'
87+
gh extension install github/gh-copilot
88+
8989
echo '++++++++++++++++++++++++++++++'
9090
echo 'All done!'
9191
echo 'Things to do to make the agnoster terminal theme work:'

shell/.exports

+1-3
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,10 @@ case ":$PATH:" in
120120
esac
121121
# pnpm end
122122

123-
eval "$(github-copilot-cli alias -- "$0")"
123+
eval "$(gh copilot alias -- bash)"
124124

125125
eval $(thefuck --alias)
126126

127-
eval "$(github-copilot-cli alias -- "$0")"
128-
129127
export KUBE_EDITOR='code --wait'
130128
export TALOS_EDITOR='code --wait'
131129

0 commit comments

Comments
 (0)