Skip to content
Snippets Groups Projects
Unverified Commit adb2daaa authored by Maxim Belkin's avatar Maxim Belkin Committed by GitHub
Browse files

Merge pull request #9260 from EricFromCanada/sh-prompt

sh: skip reading user-level initialization files
parents 1ba26be1 16e22bb5
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,9 @@ module Homebrew ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment