Fix knife completion (#2098)
Co-authored-by: Ira Abramov <github@ira.abramov.org>
This commit is contained in:
@@ -55,12 +55,12 @@ _KAC_regen_cache() {
|
|||||||
|
|
||||||
# cached files can't have spaces in their names
|
# cached files can't have spaces in their names
|
||||||
_KAC_get_cache_name_from_command() {
|
_KAC_get_cache_name_from_command() {
|
||||||
echo "${@/ /_SPACE_}"
|
echo "${@// /_SPACE_}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# the reverse operation from the function above
|
# the reverse operation from the function above
|
||||||
_KAC_get_command_from_cache_name() {
|
_KAC_get_command_from_cache_name() {
|
||||||
echo "${@/_SPACE_/ }"
|
echo "${@//_SPACE_/ }"
|
||||||
}
|
}
|
||||||
|
|
||||||
# given a command as argument, it fetches the cache for that command if it can find it
|
# given a command as argument, it fetches the cache for that command if it can find it
|
||||||
|
|||||||
Reference in New Issue
Block a user