From b1df8fe3cc2bd16ee4eca071924dbee27e04c016 Mon Sep 17 00:00:00 2001 From: 0rax Date: Fri, 11 Oct 2013 19:15:07 +0200 Subject: [PATCH] fix edit autocomplete (just dont show description of -e/--edit option and i dont know why --- autocompletion/cheat.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autocompletion/cheat.fish b/autocompletion/cheat.fish index 5dc1c70..9c6b1ca 100644 --- a/autocompletion/cheat.fish +++ b/autocompletion/cheat.fish @@ -1,9 +1,12 @@ #completion for cheat complete -c cheat -s h -l help -f -x --description "Display help and exit" -complete -c cheat -s e -l edit -f -x --description "Edit " +complete -c cheat -l edit -f -x --description "Edit " +complete -c cheat -s e -f -x --description "Edit " complete -c cheat -s l -l list -f -x --description "List all available cheatsheets" complete -c cheat -s d -l cheat-directories -f -x --description "List all current cheat dirs" complete -c cheat --authoritative -f for cheatsheet in (cheat -l | cut -d' ' -f1) complete -c cheat -a "$cheatsheet" + complete -c cheat -o e -a "$cheatsheet" + complete -c cheat -o '-edit' -a "$cheatsheet" end