mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-20 12:42:41 +02:00
Remove language completions for config files
This commit is contained in:
2
assets/completions/bat.fish
vendored
2
assets/completions/bat.fish
vendored
@@ -24,7 +24,7 @@ function __bat_autocomplete_languages --description "A helper function used by "
|
|||||||
sub(/^ +/, "", ext); # Trim leading whitespace.
|
sub(/^ +/, "", ext); # Trim leading whitespace.
|
||||||
sub(/ +$/, "", ext); # Trim trailing whitespace.
|
sub(/ +$/, "", ext); # Trim trailing whitespace.
|
||||||
|
|
||||||
if (ext != "") {
|
if ((ext != "") && (ext !~ /[A-Z].*/)) {
|
||||||
print ext"\t"lang
|
print ext"\t"lang
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user