From 6600564abd4fe83a4985646c8c52829c9f8ef3d6 Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 31 Dec 2024 13:07:02 +0100 Subject: [PATCH] compose: added fzf-tab --- .docker/fzf-tab.yaml | 8 ++++++++ .docker/fzf-tab/.zshrc | 7 +++++++ .docker/fzf-tab/Dockerfile | 9 +++++++++ compose.yaml | 1 + 4 files changed, 25 insertions(+) create mode 100644 .docker/fzf-tab.yaml create mode 100644 .docker/fzf-tab/.zshrc create mode 100644 .docker/fzf-tab/Dockerfile diff --git a/.docker/fzf-tab.yaml b/.docker/fzf-tab.yaml new file mode 100644 index 0000000000..8cea7b80cc --- /dev/null +++ b/.docker/fzf-tab.yaml @@ -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' diff --git a/.docker/fzf-tab/.zshrc b/.docker/fzf-tab/.zshrc new file mode 100644 index 0000000000..1f4e06b8ff --- /dev/null +++ b/.docker/fzf-tab/.zshrc @@ -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 diff --git a/.docker/fzf-tab/Dockerfile b/.docker/fzf-tab/Dockerfile new file mode 100644 index 0000000000..a4d9ad38ab --- /dev/null +++ b/.docker/fzf-tab/Dockerfile @@ -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"] diff --git a/compose.yaml b/compose.yaml index b877641b59..80bae4a978 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,5 +3,6 @@ include: - .docker/carapace.yaml # tools - .docker/bloop.yaml + - .docker/fzf-tab.yaml - .docker/gcloud.yaml - .docker/nix.yaml