1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-30 19:54:43 +00:00

bash: do not evaluate completions on dumb terminals

This commit is contained in:
Mario Rodas 2018-10-14 08:39:36 -05:00
parent b82bc64a0e
commit dff88ee954

View file

@ -75,6 +75,7 @@ in
${cfg.interactiveShellInit}
${optionalString cfg.enableCompletion ''
if [ "$TERM" != "dumb" ]; then
source "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
nullglobStatus=$(shopt -p nullglob)
@ -86,6 +87,7 @@ in
done
eval "$nullglobStatus"
unset nullglobStatus p m
fi
''}
# Read system-wide modifications.