bash: avoid accidents on macos when /bin/bash is being used

This commit is contained in:
Anund
2024-12-16 13:30:02 +11:00
parent 79d2f508a9
commit 427f07442b

View File

@ -261,7 +261,12 @@ fn writeBashCompletions(writer: anytype) !void {
\\ return 0
\\}
\\
\\complete -o nospace -o bashdefault -F _ghostty ghostty
\\if ! command -v mapfile 2>&1 >/dev/null
\\then
\\ echo "mapfile could not be found. ghostty autocomplete requires bash >=4.0"
\\else
\\ complete -o nospace -o bashdefault -F _ghostty ghostty
\\fi
\\
);
}