mirror of
https://github.com/gosticks/brew.git
synced 2026-10-05 06:58:04 +00:00
sh: skip reading user-level initialization files
This commit is contained in:
@@ -54,7 +54,9 @@ module Homebrew
|
||||
safe_system(ENV["SHELL"], args.named.first)
|
||||
else
|
||||
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
|
||||
"PS1=\"brew \\[\\033[1;32m\\]\\w\\[\\033[0m\\]$ \" #{ENV["SHELL"]}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user