Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dotfiles/lib/plumbing
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
29 lines (24 sloc)
950 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to update: cat $HOME/lib/plumbing | 9p write plumb/rules | |
editor = /Users/kare/bin/acme | |
include basic | |
# isbn10 search through Amazon | |
type is text | |
data matches '([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])' | |
plumb start open 'http://www.amazon.com/s/?field-keywords='$1 | |
# RFC | |
type is text | |
data matches 'RFC:([0-9]+)' | |
plumb to web | |
plumb start web http://www.rfc-editor.org/rfc/rfc$1.txt | |
kind is text | |
data matches '[a-zA-Z0-9_\-./~{}@]+('$addr')?' | |
data matches '((/[a-zA-Z0-9_\-./]+)@[a-zA-Z0-9_\-./~{}@]+)('$addr')?' | |
data set $1 | |
arg isdir $2 | |
attr add addr=$4 | |
plumb to gitfileedit | |
plumb client Gitfiles | |
type is text | |
data matches '[a-zA-Z¡-�0-9_\-./]+' | |
data matches '([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])[0-9a-f]*' | |
plumb start rc -c 'cd '''$wdir'''; root=`{git rev-parse --show-toplevel}; rev='''$1'''; {gitfileshow $rev} >[2=1] | nobs | plumb -i -d edit -a ''action=showdata filename=''$root/+$rev' |