Skip to content

Commit

Permalink
compose: added fzf-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 31, 2024
1 parent 37a24ba commit 6600564
Showing 4 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .docker/fzf-tab.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
fzf-tab:
build:
context: fzf-tab
image: ghcr.io/carapace-sh/carapace-bin:fzf-tab
hostname: carapace-bin:fzf-tab
volumes:
- '..:/carapace-bin:ro'
7 changes: 7 additions & 0 deletions .docker/fzf-tab/.zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':fzf-tab:*' query-string ''

autoload -U compinit && compinit
source <(carapace _carapace zsh)
source ~/fzf-tab/fzf-tab.plugin.zsh
9 changes: 9 additions & 0 deletions .docker/fzf-tab/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM archlinux

RUN pacman -Sy --noconfirm fzf git zsh

RUN git clone --depth 1 https://github.com/Aloxaf/fzf-tab /root/fzf-tab
ADD .zshrc /root/.zshrc
ENV PATH="/carapace-bin/cmd/carapace:$PATH"

CMD ["zsh"]
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -3,5 +3,6 @@ include:
- .docker/carapace.yaml
# tools
- .docker/bloop.yaml
- .docker/fzf-tab.yaml
- .docker/gcloud.yaml
- .docker/nix.yaml

0 comments on commit 6600564

Please sign in to comment.