-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
1,441 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
.github/**/node_modules | ||
/CHANGELOG.md | ||
/script/build | ||
.env | ||
|
||
# VS Code | ||
.vscode | ||
|
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,71 @@ | ||
FROM golang | ||
|
||
# shells | ||
RUN wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb \ | ||
&& dpkg -i packages-microsoft-prod.deb | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y bash-completion \ | ||
fish \ | ||
elvish \ | ||
locales \ | ||
powershell \ | ||
python3-pip \ | ||
zsh | ||
|
||
ENV GOPATH /go | ||
RUN ln -s /gh/cmd/gh/gh /usr/local/bin/gh | ||
|
||
# bash | ||
RUN echo "\n\ | ||
source /usr/share/bash-completion/bash_completion \n\ | ||
source <(gh _carapace)" \ | ||
> /root/.bashrc | ||
|
||
# fish | ||
# Set the locale | ||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \ | ||
&& locale-gen | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
RUN mkdir -p /root/.config/fish \ | ||
&& echo "gh _carapace | source" \ | ||
> /root/.config/fish/config.fish | ||
|
||
# elvish | ||
RUN curl https://dl.elv.sh/linux-amd64/elvish-HEAD.tar.gz | tar -xvz \ | ||
&& mv elvish-* /usr/local/bin/elvish | ||
|
||
RUN mkdir -p /root/.elvish/lib \ | ||
&& echo "eval (gh _carapace|slurp)" \ | ||
> /root/.elvish/rc.elv | ||
|
||
# powershell | ||
RUN mkdir -p /root/.config/powershell \ | ||
&& echo "\n\ | ||
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete\n\ | ||
gh _carapace | Out-String | Invoke-Expression" \ | ||
> /root/.config/powershell/Microsoft.PowerShell_profile.ps1 | ||
|
||
# xonsh | ||
RUN pip3 install --no-cache-dir --disable-pip-version-check xonsh \ | ||
&& ln -s $(which xonsh) /usr/bin/xonsh | ||
|
||
RUN mkdir -p ~/.config/xonsh \ | ||
&& echo "\n\ | ||
\$COMPLETIONS_CONFIRM=True\n\ | ||
exec(\$(gh _carapace))"\ | ||
> ~/.config/xonsh/rc.xsh | ||
|
||
# zsh | ||
RUN echo "\n\ | ||
zstyle ':completion:*' menu select \n\ | ||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' \n\ | ||
\n\ | ||
autoload -U compinit && compinit \n\ | ||
source <(gh _carapace)"\ | ||
> /root/.zshrc | ||
|
||
WORKDIR /gh |
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,38 @@ | ||
version: '3' | ||
|
||
services: | ||
build: &base | ||
build: . | ||
command: sh -c 'sh -c "cd /gh/cmd/gh/ && go build -ldflags=\"-s -w\" ."' | ||
volumes: | ||
- '.:/gh/' | ||
- 'go:/go/' | ||
environment: | ||
GITHUB_TOKEN: $GITHUB_TOKEN | ||
|
||
bash: | ||
<<: *base | ||
command: bash | ||
|
||
elvish: | ||
<<: *base | ||
command: elvish | ||
|
||
fish: | ||
<<: *base | ||
command: fish | ||
|
||
powershell: | ||
<<: *base | ||
command: pwsh | ||
|
||
xonsh: | ||
<<: *base | ||
command: xonsh | ||
|
||
zsh: | ||
<<: *base | ||
command: zsh | ||
|
||
volumes: | ||
go: |
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
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
Oops, something went wrong.