Added "daisy arg", a hooking tool that allows you to re-use arguments from previous commands.
This commit is contained in:
parent
0859ba819b
commit
60cc207011
3 changed files with 70 additions and 24 deletions
13
README.md
13
README.md
|
|
@ -235,6 +235,19 @@ Edits ld.source and re-sources it, similarly to shrc. Append "-e" to edit
|
|||
Append "-d" to edit "daisy.command.source".
|
||||
················································································
|
||||
|
||||
< daisy arg >
|
||||
················································································
|
||||
This tool intercepts the arguments of the last command executed in your shell.
|
||||
You can retrieve specific arguments by index (starting at 1) or all arguments
|
||||
at once using "@". The command itself (index 0) is excluded from "@".
|
||||
Arguments containing spaces are correctly preserved.
|
||||
|
||||
Usage: $(daisy arg <index>)
|
||||
$(daisy arg @)
|
||||
Example: ls -l "My Folder"
|
||||
cd "$(daisy arg 2)" # Changes directory to "My Folder"
|
||||
················································································
|
||||
|
||||
< daisy reload >
|
||||
················································································
|
||||
Re-sources ld.source. Essentially `ldrc` without editing.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue