Merge "fish-completion: leave the shell prompt intact" into main
This commit is contained in:
commit
b2fc007811
|
@ -14,7 +14,7 @@ function _nix_complete
|
||||||
# But the variable also misses the current token so it cancels out.
|
# But the variable also misses the current token so it cancels out.
|
||||||
set -l nix_arg_to_complete (count $nix_args)
|
set -l nix_arg_to_complete (count $nix_args)
|
||||||
|
|
||||||
env NIX_GET_COMPLETIONS=$nix_arg_to_complete $nix_args $current_token
|
env NIX_GET_COMPLETIONS=$nix_arg_to_complete $nix_args $current_token 2>/dev/null
|
||||||
end
|
end
|
||||||
|
|
||||||
function _nix_accepts_files
|
function _nix_accepts_files
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace nix {
|
||||||
LogFormat defaultLogFormat = LogFormat::raw;
|
LogFormat defaultLogFormat = LogFormat::raw;
|
||||||
|
|
||||||
LogFormat parseLogFormat(const std::string & logFormatStr) {
|
LogFormat parseLogFormat(const std::string & logFormatStr) {
|
||||||
if (logFormatStr == "raw" || getEnv("NIX_GET_COMPLETIONS"))
|
if (logFormatStr == "raw")
|
||||||
return LogFormat::raw;
|
return LogFormat::raw;
|
||||||
else if (logFormatStr == "raw-with-logs")
|
else if (logFormatStr == "raw-with-logs")
|
||||||
return LogFormat::rawWithLogs;
|
return LogFormat::rawWithLogs;
|
||||||
|
|
Loading…
Reference in a new issue