$history
 – 
Mapping of History Event Number to History Line
$history maps history event numbers to the full history line.
The output of ${history[@]} is sorted and contains the most recent history event as first value.
Links
Examples
- Print Command History
- Output:1typeset history1history=( [2]='echo second command' [1]='echo first command' )
BashSupport Pro ist eine Zsh IDE mit Unterstützung für $history - probieren Sie es jetzt aus!