Added autocompletion for fish shell
This commit is contained in:
1 parent
f5a7c30dc4
commit
b6e73539bd
2 files changed
+13
-2
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#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 <cheatsheet>"
|
||||
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"
|
||||
end
|
||||
Reference in new issue
Block a user