Functionalities & Features

This chapter presents the built-in functionally and features of DMK.

Automatic activation of the profile

A profile template is delivered with DMK. Follow the instructions to configure DMK sourcing at login time.

Linux/Unix login-Shell profile

Depending on your SHELL the profile file can be called “.profile” or “.bash_profile”.

cat ${DMK_HOME}/templates/profile/dmk.postgres.profile >> ~/.bash_profile

Alias & Variable Management : ${DMK_HOME}/etc/dmk.conf

DMK sets the environment using “${DMK_HOME}/etc/dmk.conf” in 3 steps

All these steps match to a section from the “${DMK_HOME}/etc/dmk.conf” file which are defined by brackets “[…]”, example follows:

[GLOBAL]
var::PGTAB::=::nooption::"/etc/pgtab"::

alias::vio::novar_noforce::"vi ${PGTAB}"::
[SID]
var::DMK_PG_ADMIN_DATABASE::=::nowarn::"${PGBASE}/admin/${PGDATABASE}"::

alias::cda::var_noforce::'cd ${DMK_PG_ADMIN_DATABASE}'::

Last updated