aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/utils.rb
blob: ed6063472e8503fea69d42a29810f8e5f88ec01a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# return the shell profile file based on users' preference shell
def shell_profile
  opoo "shell_profile has been deprecated in favor of Utils::Shell.profile"
  case ENV["SHELL"]
  when %r{/(ba)?sh} then "~/.bash_profile"
  when %r{/zsh} then "~/.zshrc"
  when %r{/ksh} then "~/.kshrc"
  else "~/.bash_profile"
  end
end

module Tty
  module_function

  def white
    reset.bold
  end
end

def puts_columns(items)
  odeprecated "puts_columns", "puts Formatter.columns"
  puts Formatter.columns(items)
end