Expanded and fixed "daisy arg", adding a way to set args and shift.
This commit is contained in:
parent
60cc207011
commit
7f9eb230f6
3 changed files with 37 additions and 3 deletions
|
|
@ -241,11 +241,20 @@ 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.
|
||||
See Usage for how to use in commands, and Setting for manipulation.
|
||||
|
||||
Usage: $(daisy arg <index>)
|
||||
$(daisy arg @)
|
||||
Setting: daisy arg <index> <value>
|
||||
daisy arg @ <value>
|
||||
daisy arg shift
|
||||
Example: ls -l "My Folder"
|
||||
cd "$(daisy arg 2)" # Changes directory to "My Folder"
|
||||
Example: daisy arg 1 /home/user; daisy arg 2 /; daisy arg 3 /backup
|
||||
echo $(daisy arg @) # "/home/user / /backup"
|
||||
daisy arg 2 /home/user2
|
||||
echo $(daisy arg @) # /home/user /home/user2 /backup
|
||||
fdupes $(daisy arg @) | duperemove --fdupes
|
||||
················································································
|
||||
|
||||
< daisy reload >
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue