term-detect
Terminal emulator detector
Implementation details
It works using 3 methods.
TERMINALenvironment variable
The terminal is detected by reading theTERMINALenvironment variable.- DE (desktop environment) specific checks
The terminal is detected by checking DE-specific config files. $PATHsearch
The terminal from a list is picked if it's found in$PATH.
Examples
Run fish in private mode in a terminal window. Don't close the window when the command ends.
use Command;
use ;