Browse Source

update docs and fix silly bug

Daniel Sheffield 3 months ago
parent
commit
950378506e
2 changed files with 9 additions and 1 deletions
  1. 4 0
      README.md
  2. 5 1
      recall.sh

+ 4 - 0
README.md

@@ -42,3 +42,7 @@ I want to build a complex pipeline with many long running commands...
 find . | grep 'pattern2' | cut -d '/' -f2
 ```
 
+I want to see all the captured commands...
+```bash
+@ -l
+```

+ 5 - 1
recall.sh

@@ -28,6 +28,10 @@ the captured exit status.
     - List paths to all captured find commands
 
       ${0##*/} -l find
+
+    - List at most 10 paths to all captured find commands
+
+      ${0##*/} -l -n 10 find
 EOF
 }
 
@@ -112,7 +116,7 @@ then
 		| fzf --read0 --print0 -m --no-sort "${fzf_query[@]}" -d / --nth 1,2,3 --preview='cat {}/info; head {}/dat' \
 		| awk -v RS='\0' -v FS='/' -v OFS='/' -v ORS='\0' '{for (i=2; i<=NF; i++) printf "%s%s", $(i), (i<NF ? OFS : ORS)}' \
 		| awk -v prefix="$LOG_ROOT/" -v RS='\0' -v ORS='\n' '{print prefix $0}' \
-		: "TODO: allow configuring null terminated output"
+		&& : "TODO: allow configuring null terminated output"
 	)
 else
 	SUBPROG=""