commit 5da4de5a3098a9e7cbfd521cffd00a4c0911a089 from: Dominik Lang date: Wed Mar 13 20:50:18 2024 UTC Add some more todos. While there, add the missing "nushell" in some of the code examples. commit - 155837cce7f5d654cf7992feb5d32cccd47416f1 commit + 5da4de5a3098a9e7cbfd521cffd00a4c0911a089 blob - e788283d0347159b01def972b59d7e2f3ec06f8a blob + 84b4e11157aaef8271bfccf2a832963a112524e1 --- README.md +++ README.md @@ -32,29 +32,29 @@ snip show nmap version -g 0 This can then be used in all kinds of manners, e.g. Replace the commandline with the selected command -``` +```nushell snip show nmap version -g 0 | commandline edit -r $in ``` Copy the selected command into the tmux buffer: -``` +```nushell snip show nmap version -g 0 | tmux setb $in ``` Copy the selected command into the clipboard buffer using xclip: -``` +```nushell snip show nmap version -g 0 | xclip -selection clipboard ``` Using the new `tee` command to print the command and then to copy it into the clipboard buffer using xclip: -``` +```nushell snip show nmap version -g 0 | tee { to text | print } | xclip -selection clipboard ``` ### Adding entries You can add entries using the `snip add` command: -``` +```nushell snip add "list users using smb null session #win #enum" "netexec smb -u -p --sam" ``` @@ -86,3 +86,5 @@ use /snippets * ## Todo - [ ] Better examples, with example output +- [ ] Maybe, remove rg as a dependency +- [ ] Add my current `box` tool, which does substitutions, based on `` syntax