Top Level Namespace

Defined Under Namespace

Modules: Howzit Classes: Hash, String

Constant Summary collapse

CONFIG_DIR =

Main config dir Prefer XDG_CONFIG_HOME if set, otherwise fall back to ~/.config/howzit

if ENV['XDG_CONFIG_HOME'] && !ENV['XDG_CONFIG_HOME'].empty?
  File.join(ENV['XDG_CONFIG_HOME'], 'howzit')
else
  File.join(Dir.home, '.config', 'howzit')
end
CONFIG_FILE =

Config file name

'howzit.yaml'
COLOR_FILE =

Color template name

'theme.yaml'
IGNORE_FILE =

Ignore file name

'ignore.yaml'
MATCHING_OPTIONS =

Available options for matching method

%w[partial exact fuzzy beginswith token].freeze
MULTIPLE_OPTIONS =

Available options for multiple_matches method

%w[first best all choose].freeze
HEADER_FORMAT_OPTIONS =

Available options for header formatting

%w[border block].freeze
LOG_LEVELS =

Available log levels

{
  debug: 0,
  info: 1,
  warn: 2,
  error: 3
}.deep_freeze