Overview
Comment: | Only apply flgrep to current directory & children |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
ca125534419b8009ff962894b034cbd0 |
User & Date: | js 2020-08-15 15:52:57 |
Context
2020-08-18
| ||
21:16 | fld.fish: Fallback for when colordiff is missing check-in: 37f5866f0b user: js tags: trunk | |
2020-08-15
| ||
15:52 | Only apply flgrep to current directory & children check-in: ca12553441 user: js tags: trunk | |
15:25 | Add flgrep to grep tracked files in a Fossil repo check-in: b6c2a67aab user: js tags: trunk | |
Changes
Changes to zshrc.
︙ | ︙ | |||
223 224 225 226 227 228 229 | fossil diff -N "$@" | sed "s/^+.*$/$green&$reset/" | sed "s/^-.*$/$red&$reset/" | less -FRX fi } flgrep() { local ret=1 | | | 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | fossil diff -N "$@" | sed "s/^+.*$/$green&$reset/" | sed "s/^-.*$/$red&$reset/" | less -FRX fi } flgrep() { local ret=1 fossil changes --all . | sed 's/^.* //' | while read file; do grep -H "$@" "$file" && ret=0 [ $? -gt 1 ] && return $? done return $ret } git2fl() { |
︙ | ︙ |