github.com/xiaq/elvish@v0.12.0/website/tty/lastcmd.html (about)

     1  ~&gt; <span class="sgr-32">rm</span><span class="sgr-"> -rf /var</span>
     2  rm: /var: Operation not permitted
     3  Exception: <span class="sgr-1 sgr-31">rm exited with 1</span>
     4  Traceback:
     5    [interactive], line 1:
     6      rm -rf /var
     7  ~&gt;                                           <span class="sgr-7">xiaq@xiaqsmbp</span>
     8  <span class="sgr-1 sgr-37 sgr-45"> LASTCMD </span><span class="sgr-"> </span>
     9  <span class="sgr-7">M-1 rm -rf /var                                           </span>
    10    0 rm                                                    
    11    1 -rf                                                   
    12    2 /var