From ad354cf84958374795d3a13b1ecf2a3a69eb4ebc Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Fri, 22 Oct 2021 00:27:35 +0530 Subject: [PATCH] Specify -c when erasing Fish completions --- CHANGELOG.md | 8 +++++++- templates/fish.txt | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 336b6d5..1589ce6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Fish: error erasing completions on older versions. + ## [0.7.7] - 2021-10-21 ### Added @@ -15,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Fix compile errors due to broken `clap` dependency. +- Compile error with `clap v3.0.0-beta.5`. ## [0.7.7] - 2021-10-15 diff --git a/templates/fish.txt b/templates/fish.txt index 47bceba..f081360 100644 --- a/templates/fish.txt +++ b/templates/fish.txt @@ -123,7 +123,7 @@ end __zoxide_unset {{cmd}} alias {{cmd}}=__zoxide_z -complete -e {{cmd}} +complete -c {{cmd}} -e complete -c {{cmd}} -f -a '(__zoxide_z_complete)' __zoxide_unset {{cmd}}i