# Path: rash/utils/confutils.py
# def get_config_directory(appname):
#     """
#     Get OS-specific configuration directory.
# 
#     :type appname: str
#     :arg  appname: capitalized name of the application
# 
#     """
#     if platform.system().lower() == 'windows':
#         path = os.path.join(os.getenv('APPDATA') or '~', appname, appname)
#     elif platform.system().lower() == 'darwin':
#         path = os.path.join('~', 'Library', 'Application Support', appname)
#     else:
#         path = os.path.join(os.getenv('XDG_CONFIG_HOME') or '~/.config',
#                             appname.lower())
#     return os.path.expanduser(path)
# 
# Path: rash/utils/pathutils.py
# def mkdirp(path):
#     """
#     Make directory at `path` if it does not exist.
#     """
#     if not os.path.isdir(path):
#         os.makedirs(path)


import os
from .utils.confutils import get_config_directory
from .utils.pathutils import mkdirp
                'RASH_SPENV_TERMINAL',
            ],
            'exit': [],
            'command': ['PATH'],
        }
        """
        Environment variables to record.

        Each key (str) represent record type (init/exit/command).
        Each value (list of str) is a list of environment variables to
        record.

        Example usage:

        >>> config = Configuration()
        >>> config.record.environ['command'] += ['VIRTUAL_ENV', 'PYTHONPATH']

        """


class SearchConfig(object):

    """
    Search configuration.
    """

    def __init__(self):

        self.alias = {}
        r"""

# Path: rash/utils/confutils.py
# def get_config_directory(appname):
#     """
#     Get OS-specific configuration directory.
# 
#     :type appname: str
#     :arg  appname: capitalized name of the application
# 
#     """
#     if platform.system().lower() == 'windows':
#         path = os.path.join(os.getenv('APPDATA') or '~', appname, appname)
#     elif platform.system().lower() == 'darwin':
#         path = os.path.join('~', 'Library', 'Application Support', appname)
#     else:
#         path = os.path.join(os.getenv('XDG_CONFIG_HOME') or '~/.config',
#                             appname.lower())
#     return os.path.expanduser(path)
# 
# Path: rash/utils/pathutils.py
# def mkdirp(path):
#     """
#     Make directory at `path` if it does not exist.
#     """
#     if not os.path.isdir(path):
#         os.makedirs(path)


# Path: rash/config.py
import os
from .utils.confutils import get_config_directory
from .utils.pathutils import mkdirp

                'RASH_SPENV_TERMINAL',
            ],
            'exit': [],
            'command': ['PATH'],
        }
        """
        Environment variables to record.

        Each key (str) represent record type (init/exit/command).
        Each value (list of str) is a list of environment variables to
        record.

        Example usage:

        >>> config = Configuration()
        >>> config.record.environ['command'] += ['VIRTUAL_ENV', 'PYTHONPATH']

        """


class SearchConfig(object):

    """
    Search configuration.
    """

    def __init__(self):

        self.alias = {}
        r"""

        Search query alias.