mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 02:31:25 +01:00
Completion (Bash): fixes --config/-c path completion splitting on spaces (#2621) [ci skip]
Co-authored-by: Carter Li <CarterLi@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,7 @@ Features:
|
|||||||
* Improved performance of LocalIP, NetIO and DNS on Windows
|
* Improved performance of LocalIP, NetIO and DNS on Windows
|
||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
* Fixed `--config`/`-c` bash completion offering one candidate per word instead of one candidate per file for paths containing spaces. (Completion, Bash)
|
||||||
* Fixed external monitors detected via DDC/CI being randomly reported as built-in, and libddcutil trace messages occasionally leaking into the output and breaking `--format json`. (#2615, Brightness / Linux)
|
* Fixed external monitors detected via DDC/CI being randomly reported as built-in, and libddcutil trace messages occasionally leaking into the output and breaking `--format json`. (#2615, Brightness / Linux)
|
||||||
* Fixed the Vulkan driver name being concatenated with the driver name of a previously enumerated device on systems with more than one GPU. (#2619, Vulkan)
|
* Fixed the Vulkan driver name being concatenated with the driver name of a previously enumerated device on systems with more than one GPU. (#2619, Vulkan)
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ _fastfetch() {
|
|||||||
if type _filedir &>/dev/null; then
|
if type _filedir &>/dev/null; then
|
||||||
_filedir
|
_filedir
|
||||||
elif type compgen &>/dev/null; then
|
elif type compgen &>/dev/null; then
|
||||||
COMPREPLY+=($(compgen -f -- "$cur"))
|
local -a files
|
||||||
|
readarray -t files < <(compgen -f -- "$cur")
|
||||||
|
COMPREPLY+=("${files[@]}")
|
||||||
fi
|
fi
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user