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:
parent
b82bc64a0e
commit
dff88ee954
1 changed files with 11 additions and 9 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue