sh: skip reading user-level initialization files
This commit is contained in:
parent
53c59cd5a8
commit
16e22bb5e8
@ -54,7 +54,9 @@ module Homebrew
|
|||||||
safe_system(ENV["SHELL"], args.named.first)
|
safe_system(ENV["SHELL"], args.named.first)
|
||||||
else
|
else
|
||||||
subshell = if ENV["SHELL"].include?("zsh")
|
subshell = if ENV["SHELL"].include?("zsh")
|
||||||
"PS1='brew %B%F{green}%~%f%b$ ' #{ENV["SHELL"]} -d"
|
"PS1='brew %B%F{green}%~%f%b$ ' #{ENV["SHELL"]} -d -f"
|
||||||
|
elsif ENV["SHELL"].include?("bash")
|
||||||
|
"PS1=\"brew \\[\\033[1;32m\\]\\w\\[\\033[0m\\]$ \" #{ENV["SHELL"]} --noprofile --norc"
|
||||||
else
|
else
|
||||||
"PS1=\"brew \\[\\033[1;32m\\]\\w\\[\\033[0m\\]$ \" #{ENV["SHELL"]}"
|
"PS1=\"brew \\[\\033[1;32m\\]\\w\\[\\033[0m\\]$ \" #{ENV["SHELL"]}"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user