NHI-LOG-SESSION

NAME
DESCRIPTION
SYNOPSIS
OPTIONS

NAME

nhi-log-session - Show logs of executed commands within <session>.

DESCRIPTION

nhi-log-session shows logs of executed commands within session using less program. Interface is inspired by git-log.

SYNOPSIS

nhi log [--help | -h] <session> [--exit-status | -s <exit-status>] [--directory | -d <directory>] [--command | -c <command-regex>] [--before | -b <date-and-time>] [--after | -a <date-and-time>] [-l | --long]

OPTIONS

-h, --help

Show context-sensitive help.

<session>

You can specify session by its:
- index, sessions are arranged from oldest to the most recently started. Indexing starts from 0, not from 1.
- negative index, the index value of -1 gives the most recently started session, -2 gives the second most recent session, etc.
- name.

Indicator needs to be specified inside curly brackets.

-s, --exit-status=<exit-status>

Only show command(s) with specified exit status.

-d, --directory=<directory>

Only show command(s) executed in specified directory.

-c, --command=<command-regex>

Only show command(s) that match given regex.

-b, --before=<date-and-time>

Only show command(s) executed before specified date and time. Date and time needs to be specified in the following format: "%YY-%MM-%DD %HH:%MM:%SS".

-a, --after=<date-and-time>

Only show command(s) executed after specified date and time. Date and time needs to be specified in the following format: "%YY-%MM-%DD %HH:%MM:%SS".

-l, --long

Use a long listing format.