Fix knife completion (#2098)
Co-authored-by: Ira Abramov <github@ira.abramov.org>pull/2101/head v3.0.0
parent
34bc37c178
commit
be9a838015
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue