Closed ThibautHH closed 1 year ago
Save previous commands to history.
$histfile
cd dir;pwd
cd dir ; pwd
!n
n
!-n
!!
!-1
!#
!<string>
<string>
!?<string>?
?
!<event specifier>:<word selctor>
:0
:n
:^
:1
:$
:%
?<string>?
:n-m
:-n
0-n
:*
^-$
:n*
n-$
n*
Extra :<letter> transformations...
:<letter>
History
Save previous commands to history.
$histfile
cd dir;pwd
=>cd dir ; pwd
)History substitution
!n
: Event #n
!-n
:n
-th previous event!!
: Last event (equiv.!-1
)!#
: Current event (maximum 10 levels of recursion are allowed)!<string>
: Most recent event beginning with<string>
!?<string>?
: Most recent event containing<string>
(last?
can be a newline)Word selection
!<event specifier>:<word selctor>
:0
: First word (command):n
:n
-th argument:^
: First argument (equiv.:1
):$
: Last argument:%
: Word matched by a?<string>?
search:n-m
: Range of words:-n
: equiv.0-n
:*
: equiv.^-$
(returns nothing on single word event):n*
: equiv.n-$
:n*
: equiv.n*
but without:$
Word modifiers
Extra
:<letter>
transformations...