Skip to content

Commit

Permalink
compose: added cmd-clink
Browse files Browse the repository at this point in the history
not yet working due to to https://bugs.winehq.org/show_bug.cgi?id=24026
(Tab key just inserts `^I`)
  • Loading branch information
rsteube committed Jan 1, 2025
1 parent b08a3f2 commit b8b95c4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .docker/cmd-clink.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
cmd-clink:
build:
context: cmd-clink
image: ghcr.io/carapace-sh/carapace-bin:cmd-clink
hostname: carapace-bin:cmd-clink
volumes:
- '..:/carapace-bin:ro'
19 changes: 19 additions & 0 deletions .docker/cmd-clink/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM archlinux

RUN echo -e "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n" >> /etc/pacman.conf

RUN pacman -Sy --noconfirm elvish unzip wine

RUN curl -L "https://github.com/chrisant996/clink/releases/download/v1.7.7/clink.1.7.7.521fa7.zip" > /tmp/clink.zip \
&& unzip -d /clink /tmp/clink.zip \
&& rm /tmp/clink.zip

ENV WINEPATH="Z:\\clink;Z:\\carapace-bin\\cmd\\carapace"

# TODO register clink/carapace and fix tab completion (https://bugs.winehq.org/show_bug.cgi?id=24026)

RUN mkdir -p ~/.config/elvish \
&& echo -e "set paths = [ /carapace-bin/cmd/carapace \$@paths ]\neval (carapace _carapace|slurp)" > ~/.config/elvish/rc.elv
ENV PATH="/carapace-bin/cmd/carapace:$PATH"

CMD ["wine", "cmd"]
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include:
# tools
- .docker/apk.yaml
- .docker/bloop.yaml
- .docker/cmd-clink.yaml
- .docker/fzf-tab.yaml
- .docker/gcloud.yaml
- .docker/nix.yaml
Expand Down

0 comments on commit b8b95c4

Please sign in to comment.