Module: Dotpretty::ColorPalettes::Bash

Defined in:
lib/dotpretty/color_palettes/bash.rb

Constant Summary collapse

RESET =
"\e[0m"
START_GREEN =
"\033[32m"
START_RED =
"\033[31m"
START_YELLOW =
"\033[33m"

Instance Method Summary collapse

Instance Method Details

#green(text) ⇒ Object



10
11
12
# File 'lib/dotpretty/color_palettes/bash.rb', line 10

def green(text)
  return "#{START_GREEN}#{text}#{RESET}"
end

#red(text) ⇒ Object



14
15
16
# File 'lib/dotpretty/color_palettes/bash.rb', line 14

def red(text)
  return "#{START_RED}#{text}#{RESET}"
end

#yellow(text) ⇒ Object



18
19
20
# File 'lib/dotpretty/color_palettes/bash.rb', line 18

def yellow(text)
  return "#{START_YELLOW}#{text}#{RESET}"
end