Open pawamoy opened 7 years ago
Usage of builtins, aliases, functions, GNU tools. Maybe it would require a new field to be added to history, because we might not be able to determine afterwards the type of the command. We would add a type
field whose contents are the result of type -t
for Bash and type -w
for Zsh.
EDIT: done
Post your ideas here!
Reminder of the available fields for analysis:
start
: command start timestop
: command stop timeduration
: duration of the commanduuid
: session id, shared with subshellsparents
: process parents, newline-separated commands, something like:host
: hostnameuser
: usernametty
: something like/dev/pts/0
or/dev/tty1
path
: command working directoryshell
: shell used (/bin/bash
,/bin/zsh
, etc.)level
: shell level (usually 2 in a GUI, 1 in a Ctrl-Alt-F1/6 TTY)type
: command type (builtin, alias, function, file, keyword, none)code
: command return codecmd
: the command itselfBoost priority