dev-cmd/sh: tweak named args syntax.
This commit is contained in:
parent
28c43f1afc
commit
483fbb7fe4
@ -46,7 +46,7 @@ module Homebrew
|
|||||||
if args.cmd.present?
|
if args.cmd.present?
|
||||||
safe_system(ENV["SHELL"], "-c", args.cmd)
|
safe_system(ENV["SHELL"], "-c", args.cmd)
|
||||||
elsif args.named.present?
|
elsif args.named.present?
|
||||||
safe_system(ENV["SHELL"], args.named[0])
|
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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user