$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.

Examples

Print Command History
1
typeset history
Output:
1
history=( [2]='echo second command' [1]='echo first command' )
BashSupport Pro 是一款支持 history** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2025 Joachim Ansorg
声明
隐私政策
许可条款